Vulnerability in Api-Platform Core
CVE-2025-31485
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 · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.006 (48.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 48th percentile — 48.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.006 · change: +0.000
Affected products
- Api-Platform Core — versions >= 4.0.0-alpha.1, < 4.0.22, < 3.4.17
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2025-31485?
- CVE-2025-31485 is a high-severity vulnerability in Api-Platform Core, classified under CWE-696. CVSS score: 7.5/10. Published 2025-04-03.
- How severe is CVE-2025-31485?
- High severity. CVSS v3 base score is 7.5 out of 10.