CVE-2025-31481Published Apr 3, 2025 · Apr 3Updated Oct 28
GraphQL query operations security can be bypassed
api-platform core
High7.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| api-platform/graphql Packagist |
|
|
| api-platform/core Packagist |
api-platform core
| Product | Affected | Fixed in |
|---|---|---|
| api-platform/graphql Packagist |
|
|
| api-platform/core Packagist |
≥ 4.0.0-alpha.1 · < 4.0.22< 3.4.17≥ 4.1.0-alpha.1 · < 4.1.5
|
API Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. Using the Relay special node type you can bypass the configured security on an operation. This vulnerability is fixed in 4.0.22 and 3.4.17.
From the CVE record · GitHub_M
API Platform Core’s GraphQL Relay special node type can bypass security configured on an operation. The input does not specify whether authentication or user interaction is required.
Engineers running affected versions of the Packagist packages api-platform/core or api-platform/graphql should check their installations, including versions before 3.4.17 and the listed 4.0 and 4.1 prerelease and stable ranges.