CVE-2025-31485
CVE-2025-31485 is a high-severity vulnerability with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-696.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 1% (51st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-9735
- Weakness: CWE-696
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2025-31485?
- CVE-2025-31485 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2025-31485 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (51st percentile), an estimate of the probability of exploitation in the next 30 days.
- How do I fix CVE-2025-31485?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2025-31485 have an EU (EUVD) identifier?
- Yes. CVE-2025-31485 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-9735.
- When was CVE-2025-31485 published?
- CVE-2025-31485 was published on 2025-04-03 and last updated on 2026-06-17.
References
- https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8
- https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a
- https://github.com/api-platform/core/releases/tag/v3.4.17
- https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3
Other CWE-696 vulnerabilities
- CVE-2026-132891 — Critical (CVSS 9.8): In JetBrains TeamCity before 2026.2, 2026.1.4, 2025.11.8 remote code execution was possible via external pull requests
- CVE-2026-44108 — Critical (CVSS 9.8): Due to a flaw in the execution order of scripts during shutdown, the firewall is terminated prematurely during system…
- CVE-2026-121291 — High (CVSS 8.2): A crafted Error Report can leave EOS stuck believing that a cache reset is in progress, preventing ROA publication,…
- CVE-2026-14169 — High (CVSS 8.1): Due to incorrect behavior order a low privileged remote attacker could trigger account inconsistent state via crafted…
- CVE-2026-110450 — High (CVSS 8.0): Nix before 2.35.3 and Lix before 2.95.4 allow privilege escalation via a repair operation because it could destroy and…
- CVE-2026-45033 — High (CVSS 7.8): GitHub Copilot CLI brings AI-powered coding assistance directly to your command line. Prior to 1.0.43, a security…