Back
CVE-2025-31485
GraphQL grant on a property might be cached with different objects
High7.5EPSS 0.63%
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVDNVD · Deferred | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.63% · top 50% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
- affected >= 4.0.0-alpha.1, < 4.0.22
- affected < 3.4.17
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistapi-platform/coreGHSA-428q-q3vv-3fq3 (opens in a new tab)
- Packagistapi-platform/graphqlGHSA-428q-q3vv-3fq3 (opens in a new tab)
References (4)
- https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8 (opens in a new tab)x_refsource_MISC
- https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a (opens in a new tab)x_refsource_MISC
- https://github.com/api-platform/core/releases/tag/v3.4.17 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-428q-q3vv-3fq3 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-31485)Record last updated .