CVE-2025-31485

HIGH

API Platform Core <4.0.22, <3.4.17 - Info Disclosure

Title source: llm
STIX 2.1

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

CVSS v3 7.5
EPSS 0.0016
EPSS Percentile 37.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-696
Status published
Products (4)
api-platform/core 4.0.0-alpha.1 - 4.0.22Packagist
api-platform/core < 3.4.17
api-platform/core >= 4.0.0-alpha.1, < 4.0.22
api-platform/graphql 4.0.0-alpha.1 - 4.0.22Packagist
Published Apr 03, 2025
Tracked Since Feb 18, 2026