Vulnerability · Published Apr 3, 2025 · Assigned by GitHub_M
CVE-2025-31481GraphQL query operations security can be bypassed
High 7.5
In plain English
A high-severity incorrect authorization in core from api-platform. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 58.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | api-platform/core | 4.0.22 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/core | 3.4.17 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/core | 4.1.5 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/graphql | 4.0.22 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/graphql | 3.4.17 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/graphql | 4.1.5 | GHSA-cg3c-245w-728m |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| api-platform | core | >= 4.0.0, < 4.0.22< 3.4.17 |
Weakness: CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/api-platform/core/security/advisories/GHSA-cg3c-245w-728m x_refsource_CONFIRM
- https://github.com/api-platform/core/commit/55712452b4f630978537bdb2a07dc958202336bb x_refsource_MISC
- https://github.com/api-platform/core/commit/60747cc8c2fb855798c923b5537888f8d0969568 x_refsource_MISC
- https://github.com/api-platform/core/releases/tag/v3.4.17 x_refsource_MISC