CVE-2025-31485

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

No configuration.

History

08 Apr 2025, 14:15

Type Values Removed Values Added
References
  • () https://github.com/api-platform/core/commit/cba3acfbd517763cf320167250c5bed6d569696a -
  • () https://github.com/api-platform/core/releases/tag/v3.4.17 -
Summary (en) 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. (en) 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.

07 Apr 2025, 14:18

Type Values Removed Values Added
Summary
  • (es) 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.

03 Apr 2025, 20:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-04-03 20:15

Updated : 2025-04-08 14:15


NVD link : CVE-2025-31485

Mitre link : CVE-2025-31485

CVE.ORG link : CVE-2025-31485


JSON object : View

Products Affected

No product.

CWE
CWE-696

Incorrect Behavior Order