# CVE-2025-31485

## Summary

- **CVE ID:** CVE-2025-31485
- **Severity:** HIGH
- **CVSS Score:** 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)
- **CWE:** CWE-696
- **Published:** Apr 3, 2025
- **Last Modified:** Mar 12, 2026

## 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.

## Affected Products

- api-platform — core (>= 4.0.0-alpha.1, < 4.0.22)
- api-platform — core (< 3.4.17)

## References

- [CNA](https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3)
- [CNA](https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8)
- [CNA](https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a)
- [CNA](https://github.com/api-platform/core/releases/tag/v3.4.17)

## Exploitation Prediction (EPSS)

- **EPSS Score:** 0.60%
- **EPSS Percentile:** 46.9

---
_Exported from OnDuty AI Vulnerability Intelligence on 2026-09-10._