{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-31485","id":"CVE-2025-31485","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 ","descriptionLong":"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","updated":"2026-10-28T02:31:13.601343375Z","reserved":"2025-03-28T13:36:51.298Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["api-platform core"],"affectedProducts":[{"vendor":"api-platform","product":"core","defaultStatus":null,"versions":[{"version":">= 4.0.0-alpha.1, < 4.0.22","status":"affected"},{"version":"< 3.4.17","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"api-platform/graphql","purl":"pkg:composer/api-platform/graphql","ranges":[">=4.0.0-alpha.1 <4.0.22","<3.4.17",">=4.1.0-alpha.1 <4.1.5"],"fixed":["4.0.22","3.4.17","4.1.5"],"advisory":"GHSA-428q-q3vv-3fq3"},{"ecosystem":"Packagist","name":"api-platform/core","purl":"pkg:composer/api-platform/core","ranges":[">=4.0.0-alpha.1 <4.0.22","<3.4.17",">=4.1.0-alpha.1 <4.1.5"],"fixed":["4.0.22","3.4.17","4.1.5"],"advisory":"GHSA-428q-q3vv-3fq3"}],"cwes":["CWE-696"],"aliases":["GHSA-428q-q3vv-3fq3"],"references":[{"url":"https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/api-platform/core/releases/tag/v3.4.17","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31485.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31485","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2025-31485.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/graphql/CVE-2025-31485.yaml","tags":["web"]},{"url":"https://github.com/api-platform/core","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00626,"epssPercentile":0.50808,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-31485","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31485","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-31485","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-428q-q3vv-3fq3","ok":true,"note":"GHSA-428q-q3vv-3fq3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-31485","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}