CVE-2025-31485
GraphQL grant on a property might be cached with different objects
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Prior to 4.0.22, 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.
API Platform Core es un sistema para crear API REST y GraphQL basadas en hipermedia. Antes de la versión 4.0.22, una concesión GraphQL en una propiedad podía almacenarse en caché con diferentes objetos. El método ApiPlatform\GraphQl\Serializer\ItemNormalizer::isCacheKeySafe() impide el almacenamiento en caché, pero el método parent::normalize, que se invoca posteriormente, sigue creando la clave de caché y causando el problema. Esta vulnerabilidad se corrigió en la versión 4.0.22.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2025-03-28 CVE Reserved
- 2025-04-03 CVE Published
- 2025-04-03 CVE Updated
- 2025-04-04 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-696: Incorrect Behavior Order
CAPEC
References (2)
URL | Tag | Source |
---|---|---|
https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8 | X_refsource_misc | |
https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3 | X_refsource_confirm |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Api-platform Search vendor "Api-platform" | Core Search vendor "Api-platform" for product "Core" | < 4.0.22 Search vendor "Api-platform" for product "Core" and version " < 4.0.22" | en |
Affected
|