CVE-2025-31485: API-Platform Core
High severity, CVSS 7.5. EPSS: 0.6% chance of exploitation in the next 30 days.
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.
Affected products
- API-Platform Core: from 4.0.0-alpha.1, before 4.0.22 (fixed in 4.0.22); before 3.4.17 (fixed in 3.4.17)
Published 2025-04-03. Last modified 2026-06-17.