CVE-2025-31485CWE-696

GraphQL grant on a property might be cached with different objects

High · published April 3, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
48.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00613 · 48.7th percentile
Weakness
CWE-696 · Incorrect Behavior Order
Published
2025-04-03T19:31Z
EPSS history
Timeline
  • 03 APR 19:31Z
    GraphQL grant on a property might be cached with different objects
    cvelistv5