CVE-2025-31481
HIGH 7.5CVSS 3.1GraphQL query operations security can be bypassed
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.
- Published
- 3 Apr 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-863
- Also known as
- GHSA-cg3c-245w-728m
- Sources
- NVDJSONOSV GHSA-cg3c-245w-728mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | api-platform/graphql | >= 4.0.0-alpha.1, < 4.0.22 | 4.0.22 |
| OSV | Packagist | api-platform/core | >= 4.0.0-alpha.1, < 4.0.22 | 4.0.22 |
| OSV | Packagist | api-platform/graphql | < 3.4.17 | 3.4.17 |
| OSV | Packagist | api-platform/core | < 3.4.17 | 3.4.17 |
| OSV | Packagist | api-platform/graphql | >= 4.1.0-alpha.1, < 4.1.5 | 4.1.5 |
| OSV | Packagist | api-platform/core | >= 4.1.0-alpha.1, < 4.1.5 | 4.1.5 |
References
- https://github.com/api-platform/core/commit/55712452b4f630978537bdb2a07dc958202336bb · WEB
- https://github.com/api-platform/core/commit/60747cc8c2fb855798c923b5537888f8d0969568 · WEB
- https://github.com/api-platform/core/releases/tag/v3.4.17 · WEB
- https://github.com/api-platform/core/security/advisories/GHSA-cg3c-245w-728m · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-31481 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2025-31481.yaml · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/graphql/CVE-2025-31481.yaml · WEB
- https://github.com/api-platform/core · PACKAGE
- https://github.com/api-platform/core/releases/tag/v4.1.5 · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 3 Apr 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 4 Apr 2025)