{"id":"CVE-2025-31485","published":"2025-04-03T19:31:46Z","modified":"2025-04-08T13:15:23Z","title":"GraphQL grant on a property might be cached with different objects","vendor":"api-platform","product":"core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00626,"percentile":0.50938,"provenance":"source"},"cwes":[{"id":"CWE-696","name":"Incorrect Behavior Order"}],"references":[{"url":"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","tags":["x_refsource_MISC"]},{"url":"https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a","tags":["x_refsource_MISC"]},{"url":"https://github.com/api-platform/core/releases/tag/v3.4.17","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.19},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"api-platform","affectedVersions":[{"vendor":"api-platform","product":"core","versions":[">= 4.0.0-alpha.1, < 4.0.22","< 3.4.17"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-03T19:59:34.529256Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"api-platform/graphql","vulnerableRanges":[">=4.0.0-alpha.1, <4.0.22","<3.4.17",">=4.1.0-alpha.1, <4.1.5"],"patched":["4.0.22","3.4.17","4.1.5"],"from":["GHSA-428q-q3vv-3fq3"],"provenance":"source"},{"ecosystem":"Packagist","package":"api-platform/core","vulnerableRanges":[">=4.0.0-alpha.1, <4.0.22","<3.4.17",">=4.1.0-alpha.1, <4.1.5"],"patched":["4.0.22","3.4.17","4.1.5"],"from":["GHSA-428q-q3vv-3fq3"],"provenance":"source"}],"summary":{"text":"The flaw is in the GraphQL serializer of API Platform Core, specifically the ItemNormalizer component, where the cache-safety check is bypassed because the cache key is still generated after that check runs. An attacker with no privileges, network access, and no user interaction can cause a GraphQL grant on a property to be cached and served alongside different objects, which can expose data to requests that should not receive it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:55Z"},"euvd":{"id":"EUVD-2025-9735","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-47639","published":"2025-04-03","fixed":"3.2.5","kev":false},{"cve":"CVE-2025-23204","published":"2025-03-24","fixed":"3.3.15","kev":false,"link":{"from":"CVE-2025-23204","to":"CVE-2025-31485","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:api-platform/core","fromFixed":"3.3.15","toFixed":"3.4.17","daysApart":10}]}},{"cve":"CVE-2025-31481","published":"2025-04-03","fixed":"4.1.5","kev":false},{"cve":"CVE-2025-31485","published":"2025-04-03","fixed":"4.1.5","kev":false},{"cve":"CVE-2026-49858","published":"2026-07-01","fixed":"4.3.8","kev":false,"link":{"from":"CVE-2025-31485","to":"CVE-2026-49858","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:api-platform/core","fromFixed":"4.1.5","toFixed":"4.1.29","daysApart":454}]}},{"cve":"CVE-2026-54164","published":"2026-07-01","fixed":"4.3.12","kev":false}],"package":"Packagist:api-platform/core"}}