Incorrect Behavior Order Affecting api-platform/graphql package, versions <4.0.22


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-APIPLATFORMGRAPHQL-9653023
  • published4 Apr 2025
  • disclosed3 Apr 2025
  • creditMartin Auswöger

Introduced: 3 Apr 2025

NewCVE-2025-31485  (opens in a new tab)
CWE-696  (opens in a new tab)

How to fix?

Upgrade api-platform/graphql to version 4.0.22 or higher.

Overview

api-platform/graphql is an API Platform GraphQL component.

Affected versions of this package are vulnerable to Incorrect Behavior Order due to the ItemNormalizer::isCacheKeySafe method. An attacker can access sensitive information by exploiting the improper cache key generation.

Workaround

This can be mitigated by overriding the ItemNormalizer.

References

CVSS Base Scores

version 4.0
version 3.1