Access of Resource Using Incompatible Type ('Type Confusion') Affecting api-platform/core package, versions <4.1.30>=4.2.0-alpha.1, <4.2.26>=4.3.0-alpha.1, <4.3.12


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th 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-APIPLATFORMCORE-17796417
  • published2 Jul 2026
  • disclosed1 Jul 2026
  • creditalexandre-daubois

Introduced: 1 Jul 2026

NewCVE-2026-54164  (opens in a new tab)
CWE-843  (opens in a new tab)

How to fix?

Upgrade api-platform/core to version 4.1.30, 4.2.26, 4.3.12 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 Access of Resource Using Incompatible Type ('Type Confusion') through the getResourceFromIri process. An attacker can assign a resource of an unintended type to a relation property by submitting crafted write requests with relation IRIs pointing to resources of a different type than the declared class, potentially corrupting application invariants and affecting downstream logic.

CVSS Base Scores

version 4.0
version 3.1