{"id":"CVE-2025-31485","aliases":["GHSA-428q-q3vv-3fq3"],"url":"https://o3.security/vulnerability/CVE-2025-31485","summary":"GraphQL grant on a property might be cached with different objects","details":"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.","published":"2025-04-03T19:31:46.021Z","modified":"2026-08-12T03:51:37.908400062Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"api-platform/graphql","fixedVersion":"4.0.22"},{"ecosystem":"Packagist","name":"api-platform/core","fixedVersion":"4.0.22"},{"ecosystem":"Packagist","name":"api-platform/graphql","fixedVersion":"3.4.17"},{"ecosystem":"Packagist","name":"api-platform/core","fixedVersion":"3.4.17"},{"ecosystem":"Packagist","name":"api-platform/core","fixedVersion":"4.1.5"},{"ecosystem":"Packagist","name":"api-platform/graphql","fixedVersion":"4.1.5"}],"fix":{"url":"https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8","label":"api-platform/core@7af65aa"},"references":[{"type":"WEB","url":"https://github.com/api-platform/core/releases/tag/v3.4.17"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31485.json"},{"type":"ADVISORY","url":"https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31485"},{"type":"FIX","url":"https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8"},{"type":"FIX","url":"https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:37.908400062Z"}}