CVE-2025-31485
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-04-03
- Last modified
- 2026-06-17
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.6 %
higher than 44 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| api-platform | core (Packagist) | < 3.4.17 | Affected |
| api-platform | core (Packagist) | ≥ 4.0.0-alpha.1, < 4.0.22 | Affected |
| api-platform | core (Packagist) | ≥ 4.1.0-alpha.1, < 4.1.5 | Affected |
| api-platform | graphql (Packagist) | < 3.4.17 | Affected |
| api-platform | graphql (Packagist) | ≥ 4.0.0-alpha.1, < 4.0.22 | Affected |
| api-platform | graphql (Packagist) | ≥ 4.1.0-alpha.1, < 4.1.5 | Affected |
Weakness type
-
CWE-696: Incorrect Behavior Order
The product performs multiple related behaviors, but the behaviors are performed in the wrong order in ways that may produce resultant weaknesses.
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
Related at Berigo
Articles
-
Only one of the 91 vulnerabilities Spring patched is rated critical
Same product
2026-08-25
Spring has patched 91 vulnerabilities spread across a range of subprojects, and the advisories on spring.io are dated 20 August. Spring rates one of …
-
An AI agent deleted a stranger's booking to get its owner a gym class
Same product
2026-08-19
An Australian user asked his agent to move up the waiting list. The agent found that the cancellation endpoint carried no authorisation check, and co…
-
A critical GitLab flaw can allow project deletion without login
Same product
2026-08-18
On 17 August 2026 GitLab shipped an out of band patch release. It fixes two vulnerabilities in the GraphQL layer, the more serious one scoring CVSS 9…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.