Home / api-platform / core / CVE-2025-31481
CVE-2025-31481: is it exploited, and which versions of api-platform core are affected and fixed?
CVE-2025-31481 is an incorrect authorization vulnerability in api-platform core. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: api-platform/graphql from 4.0.0-alpha.1 before 4.0.22, api-platform/core from 4.0.0-alpha.1 before 4.0.22, api-platform/graphql before 3.4.17 and 3 more (GitHub advisory GHSA-cg3c-245w-728m). Fixed in 4.0.22, 3.4.17 and 4.1.5 (GitHub advisory GHSA-cg3c-245w-728m). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:21 UTC.
What is CVE-2025-31481?
GraphQL 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.
From the CVE record by GitHub_M, last updated April 8, 2025, 13:14 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| api-platform | core | >= 4.0.0, < 4.0.22 < 3.4.17 |
As the CVE record by GitHub_M states it, last updated April 8, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | api-platform/graphql | >= 4.0.0-alpha.1, < 4.0.22 | 4.0.22 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/core | >= 4.0.0-alpha.1, < 4.0.22 | 4.0.22 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/graphql | < 3.4.17 | 3.4.17 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/core | < 3.4.17 | 3.4.17 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/graphql | >= 4.1.0-alpha.1, < 4.1.5 | 4.1.5 | GHSA-cg3c-245w-728m |
| Packagist | api-platform/core | >= 4.1.0-alpha.1, < 4.1.5 | 4.1.5 | GHSA-cg3c-245w-728m |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated August 29, 2025. Summary: GraphQL query operations security can be bypassed.
How severe is CVE-2025-31481?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-31481 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, April 3, 2025)
- EPSS
- 0.47% probability of exploitation activity in the next 30 days, percentile 42.7 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-863 Incorrect Authorization
Where are the vendor advisories and 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
When was it published, and where is the official record?
- Reserved
- March 28, 2025
- Published
- April 3, 2025, 19:20 UTC
- CVE record updated
- April 8, 2025, 13:14 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 09:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:21 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect core?
- Jul 1, 2026CVE-2026-49858 api-platform core: use of Cache Containing Sensitive Information
- Jul 1, 2026CVE-2026-54164 api-platform core: type confusion
- Apr 3, 2025CVE-2025-31485 api-platform core: incorrect Behavior Order
- Apr 3, 2025CVE-2023-47639 api-platform core: information disclosure in error messages
- Mar 24, 2025CVE-2025-23204 api-platform core: improper input validation
- Feb 28, 2023CVE-2023-25575 api-platform core: placement of User into Incorrect Group
- Feb 4, 2019CVE-2019-1000011 Api-platform Core: improper access control
Questions about CVE-2025-31481
Is CVE-2025-31481 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 0.47% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of api-platform core are affected by CVE-2025-31481?
api-platform/graphql from 4.0.0-alpha.1 before 4.0.22, api-platform/core from 4.0.0-alpha.1 before 4.0.22, api-platform/graphql before 3.4.17, api-platform/core before 3.4.17, api-platform/graphql from 4.1.0-alpha.1 before 4.1.5 and api-platform/core from 4.1.0-alpha.1 before 4.1.5, per the GitHub advisory GHSA-cg3c-245w-728m. The tables above give every range the sources list.
Which version fixes CVE-2025-31481?
4.0.22, 3.4.17 and 4.1.5, per the GitHub advisory GHSA-cg3c-245w-728m. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-31481?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-31481?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.