VYPR
High severity7.5OSV Advisory· Published Apr 3, 2025· Updated Apr 15, 2026

CVE-2025-31485

CVE-2025-31485

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
api-platform/graphqlPackagist
>= 4.0.0-alpha.1, < 4.0.224.0.22
api-platform/corePackagist
>= 4.0.0-alpha.1, < 4.0.224.0.22
api-platform/graphqlPackagist
< 3.4.173.4.17
api-platform/corePackagist
< 3.4.173.4.17
api-platform/corePackagist
>= 4.1.0-alpha.1, < 4.1.54.1.5
api-platform/graphqlPackagist
>= 4.1.0-alpha.1, < 4.1.54.1.5

Affected products

3

Patches

Vulnerability mechanics

References

8

News mentions

0

No linked articles in our index yet.