CVE-2025-31485

GraphQL grant on a property might be cached with different objects

State
Published
Severity
7.5 High
Published
Apr 3, 2025
Updated
Apr 8, 2025
Reserved
Mar 28, 2025

Read the record on cve.org

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

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NGitHub_M

Weaknesses

Affected Products

ProductVersions
coreapi-platform
  • >= 4.0.0-alpha.1, < 4.0.22Affected
  • < 3.4.17Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.