CVE-2025-31481 json
GraphQL query operations security can be bypassed
published 2025-04-03 19 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-9737 , GHSA-cg3c-245w-728m
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 41%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist api-platform/graphql 3.4.17, 4.0.22, 4.1.5
- packagist api-platform/core 3.4.17, 4.0.22, 4.1.5
- api-platform core 3.4.17, 4.0.22
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.47% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | api-platform/graphql | >=4.0.0-alpha.1, <4.0.22 <3.4.17 >=4.1.0-alpha.1, <4.1.5 |
4.0.22 3.4.17 4.1.5 |
| packagist | api-platform/core | >=4.0.0-alpha.1, <4.0.22 <3.4.17 >=4.1.0-alpha.1, <4.1.5 |
4.0.22 3.4.17 4.1.5 |
Affected products
- api-platform core
Classification
- Weakness
-
- CWE-863 Incorrect Authorization
References
-
github.com
/api-platform/core/commit/55712452b4f630978537bdb2a07dc958202336bb
web
-
github.com
/api-platform/core/commit/60747cc8c2fb855798c923b5537888f8d0969568
web
-
github.com
/api-platform/core/security/advisories/GHSA-cg3c-245w-728m
web
-
github.com
/api-platform/core/releases/tag/v3.4.17
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-31481
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2025-31481.yaml
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/api-platform/graphql/CVE-2025-31481.yaml
web
-
github.com
/api-platform/core
package
-
github.com
/api-platform/core/releases/tag/v4.1.5
web
Sources
- CVE List CVE-2025-31481
- GitHub Advisory GHSA-cg3c-245w-728m
- NVD CVE-2025-31481
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.