Incorrect Authorization Affecting api-platform/core package, versions <4.0.22


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of Concept
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 Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-APIPLATFORMCORE-9653020
  • published4 Apr 2025
  • disclosed3 Apr 2025
  • creditMartin Auswöger

Introduced: 3 Apr 2025

NewCVE-2025-31481  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

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

Overview

api-platform/core is a builds a fully-featured hypermedia or GraphQL API in minutes.

Affected versions of this package are vulnerable to Incorrect Authorization via the Relay special node type. An attacker can access data or operations that should be restricted by bypassing the configured security controls.

Note:

This is only exploitable if GraphQl is used with the security attribute.

References

CVSS Base Scores

version 4.0
version 3.1