Vulnerabilities

CVE-2025-31485

High 7.5 CVSS 3.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.

Description as published by the source, in English.

Key facts

Published
2025-04-03
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Scored by
security-advisories@github.com
Probability of exploitation
0.6 % higher than 44 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
api-platform core (Packagist) < 3.4.17 Affected
api-platform core (Packagist) ≥ 4.0.0-alpha.1, < 4.0.22 Affected
api-platform core (Packagist) ≥ 4.1.0-alpha.1, < 4.1.5 Affected
api-platform graphql (Packagist) < 3.4.17 Affected
api-platform graphql (Packagist) ≥ 4.0.0-alpha.1, < 4.0.22 Affected
api-platform graphql (Packagist) ≥ 4.1.0-alpha.1, < 4.1.5 Affected

Weakness type

  • CWE-696: Incorrect Behavior Order

    The product performs multiple related behaviors, but the behaviors are performed in the wrong order in ways that may produce resultant weaknesses.

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities