{"id":"CVE-2025-31485","state":"PUBLISHED","title":"GraphQL grant on a property might be cached with different objects","description":"API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Prior to 4.0.22 and 3.4.17, a GraphQL grant on a property might be cached with different objects. The ApiPlatform\\GraphQl\\Serializer\\ItemNormalizer::isCacheKeySafe() method is meant to prevent the caching but the parent::normalize method that is called afterwards still creates the cache key and causes the issue. This vulnerability is fixed in 4.0.22 and 3.4.17.","publishedAt":"2025-04-03T19:31:46.021Z","updatedAt":"2025-04-08T13:15:23.510Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["api-platform core"],"affected":[{"vendor":"api-platform","product":"core","versions":[{"version":">= 4.0.0-alpha.1, < 4.0.22","status":"affected"},{"version":"< 3.4.17","status":"affected"}]}],"references":["https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3","https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8","https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a","https://github.com/api-platform/core/releases/tag/v3.4.17"],"weaknesses":["CWE-696"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/31xxx/CVE-2025-31485.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-31485","state":"PUBLISHED","datePublished":"2025-04-03T19:31:46.021Z","dateUpdated":"2025-04-08T13:15:23.510Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-03-28T13:36:51.298Z"},"containers":{"cna":{"title":"GraphQL grant on a property might be cached with different objects","descriptions":[{"lang":"en","value":"API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Prior to 4.0.22 and 3.4.17, a GraphQL grant on a property might be cached with different objects. The ApiPlatform\\GraphQl\\Serializer\\ItemNormalizer::isCacheKeySafe() method is meant to prevent the caching but the parent::normalize method that is called afterwards still creates the cache key and causes the issue. This vulnerability is fixed in 4.0.22 and 3.4.17."}],"affected":[{"vendor":"api-platform","product":"core","versions":[{"version":">= 4.0.0-alpha.1, < 4.0.22","status":"affected"},{"version":"< 3.4.17","status":"affected"}]}],"references":[{"url":"https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3","name":"https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8","name":"https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8","tags":["x_refsource_MISC"]},{"url":"https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a","name":"https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a","tags":["x_refsource_MISC"]},{"url":"https://github.com/api-platform/core/releases/tag/v3.4.17","name":"https://github.com/api-platform/core/releases/tag/v3.4.17","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-696","lang":"en","description":"CWE-696: Incorrect Behavior Order","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-04-08T13:15:23.510Z"},"source":{"advisory":"GHSA-428q-q3vv-3fq3","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-03T19:59:34.529256Z","id":"CVE-2025-31485","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-03T19:59:57.790Z"}}]}}}