High severity7.5OSV Advisory· Published Apr 3, 2025· Updated Apr 15, 2026
CVE-2025-31481
CVE-2025-31481
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
api-platform/graphqlPackagist | >= 4.0.0-alpha.1, < 4.0.22 | 4.0.22 |
api-platform/corePackagist | >= 4.0.0-alpha.1, < 4.0.22 | 4.0.22 |
api-platform/graphqlPackagist | < 3.4.17 | 3.4.17 |
api-platform/corePackagist | < 3.4.17 | 3.4.17 |
api-platform/graphqlPackagist | >= 4.1.0-alpha.1, < 4.1.5 | 4.1.5 |
api-platform/corePackagist | >= 4.1.0-alpha.1, < 4.1.5 | 4.1.5 |
Affected products
3- Range: push, remove, v1.0.0-beta, …
- ghsa-coords2 versions
>= 4.0.0-alpha.1, < 4.0.22+ 1 more
- (no CPE)range: >= 4.0.0-alpha.1, < 4.0.22
- (no CPE)range: >= 4.0.0-alpha.1, < 4.0.22
Patches
Vulnerability mechanics
References
9- github.com/advisories/GHSA-cg3c-245w-728mghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-31481ghsaADVISORY
- github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2025-31481.yamlghsaWEB
- github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/graphql/CVE-2025-31481.yamlghsaWEB
- github.com/api-platform/core/commit/55712452b4f630978537bdb2a07dc958202336bbnvdWEB
- github.com/api-platform/core/commit/60747cc8c2fb855798c923b5537888f8d0969568nvdWEB
- github.com/api-platform/core/releases/tag/v3.4.17nvdWEB
- github.com/api-platform/core/releases/tag/v4.1.5ghsaWEB
- github.com/api-platform/core/security/advisories/GHSA-cg3c-245w-728mnvdWEB
News mentions
0No linked articles in our index yet.