Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef7
- https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569
- https://github.com/api-platform/core/releases/tag/v3.4.17
- https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3
FAQ
What is CVE-2025-31485?
CVE-2025-31485 is a vulnerability with a CVSS score of 7.5 (HIGH). 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\Graph...
How severe is CVE-2025-31485?
CVE-2025-31485 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-31485?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.