CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

CVE-2025-31485: GraphQL grant on a property might be cached with different objects

7.5 CVSS

Description

API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Prior to 4.0.22, 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.

Classification

CVE ID: CVE-2025-31485

CVSS Base Severity: HIGH

CVSS Base Score: 7.5

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Problem Types

CWE-696: Incorrect Behavior Order

Affected Products

Vendor: api-platform

Product: core

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 11.64% (scored less or equal to compared to others)

EPSS Date: 2025-05-02 (when was this score calculated)

Stakeholder-Specific Vulnerability Categorization (SSVC)

SSVC Exploitation: none

SSVC Technical Impact: partial

SSVC Automatable: true

References

https://nvd.nist.gov/vuln/detail/CVE-2025-31485
https://github.com/api-platform/core/security/advisories/GHSA-428q-q3vv-3fq3
https://github.com/api-platform/core/commit/7af65aad13037d7649348ee3dcd88e084ef771f8

Timeline