CVE-2025-31485
published high CVSS 3.1 · 7.5GraphQL grant on a property might be cached with different objects
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| api-platform | — | core>= 4.0.0-alpha.1, < 4.0.22 · < 3.4.17 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| api-platform | core | >= 4.0.0-alpha.1, < 4.0.22 (affected)< 3.4.17 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-696 CWE-696: Incorrect Behavior Order
References
4- 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
Provider assertions
2GitHub_M · cna
GraphQL grant on a property might be cached with different objects
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 85f2793c605d115f19621aef5781a28fdd006da8db39479b07f8a19c4d9e6c2f
- Ingested
- 23 Sep 2026, 08:44:43 UTC
- Source record
- Official CVE record