{"id":"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.","aliases":["GHSA-428q-q3vv-3fq3"],"modified":"2026-08-12T03:51:37.908400062Z","published":"2025-04-03T19:31:46.021Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-696"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31485.json"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/api-platform/core","events":[{"introduced":"ab32cb621260cdd7a7c6eac5da74e7d0ba88c242"},{"introduced":"0"},{"fixed":"8de9bf87f20a31f74102247cb8d75583797c6593"},{"fixed":"c5fb664d17ed9ae919394514ea69a5039d2ad9ab"},{"fixed":"7af65aad13037d7649348ee3dcd88e084ef771f8"},{"fixed":"cba3acfbd517763cf320167250c5bed6d569696a"}],"database_specific":{"extracted_events":[{"introduced":"4.0.0-alpha.1"},{"fixed":"4.0.22"},{"introduced":"0"},{"fixed":"3.4.17"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v4.0.21","v4.0.20","v4.0.19","v4.0.18","v4.0.17","v4.0.16","v3.4.16","v4.0.15","v3.4.15","v3.4.14","v4.0.14","v3.4.11","v3.4.10","v4.0.13","v3.4.9","v4.0.12","v4.0.11","v3.4.8","v4.0.10","v3.4.7","v3.4.6","v4.0.9","v4.0.8","v4.0.7","v4.0.6","v3.4.5","v3.4.4","v4.0.5","v4.0.4","v3.4.3","v4.0.3","v3.4.2","v3.4.1","v4.0.2","v4.0.1","v3.4.0","v4.0.0-beta.2","v3.4.0-beta.1","v4.0.0-beta.1","v4.0.0-alpha.7","v4.0.0-alpha.6","v3.4.0-alpha.7","v3.4.0-alpha.6","v3.4.0-alpha.5","v4.0.0-alpha.5","v3.4.0-alpha.4","v3.4.0-alpha.3","v3.4.0-alpha.2","v3.4.0-alpha.1","v4.0.0-alpha.4","v4.0.0-alpha.3","v4.0.0-alpha.2","v4.0.0-alpha.1","v3.3.0-beta.2","v3.3.0-beta.1","v3.3.0-alpha.2","v3.3.0-alpha.1","v3.2.0-alpha.2","v3.2.0-alpha.1","v3.0.0","v3.0.0-rc.2","v3.0.0-rc.1","v3.0.0-beta.2","v2.7.0-alpha.2","v2.7.0-alpha.1","v2.6.0","v2.6.0-beta.1","v2.6.0-alpha.1","v2.5.0-beta.1","v2.4.0-beta.1","v2.3.0","v2.3.0-beta.1","v2.2.1","remove","push","v2.2.0","v2.2.0-beta.2","v2.2.0-beta.1","v2.1.0","v2.1.0-beta.2","v2.1.0-beta.1","v2.0.0","v2.0.0-rc.6","v2.0.0-rc.5","v2.0.0-rc.4","v2.0.0-rc.3","v2.0.0-rc.2","v2.0.0-rc.1","v2.0.0-beta.3","v2.0.0-beta.2","v2.0.0-beta.1","v2.0.0-alpha.2","v2.0.0-alpha.1","v1.0.0-beta.3","v1.0.0-beta.2","v1.0.0-beta"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31485.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}