High severity · published Apr 3, 2025
CVE-2025-31485
GraphQL grant on a property might be cached with different objects
7.5
CVSS
0.6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 50% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
core · api-platform
>= 4.0.0-alpha.1, < 4.0.22; < 3.4.17 · source: vendor
Affected product
CO
core
api-platform
More from core
7.5
CVE-2025-31481
GraphQL query operations security can be bypassed
6.5
CVE-2026-54164
API Platform Core: Missing IRI type check enables resource type confusion
6.5
CVE-2023-25575
API Platform Core is the server component of API Platform: hypermedia and GraphQL APIs
6.5
CVE-2019-1000011
API Platform version from 2.2.0 to 2.3.5 contains an Incorrect Access Control vulnerability in GraphQL delete mutations that can result in a user authorized to delete a resource…
5.9
CVE-2026-49858
API Platform Core: Cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate