# CVE-2025-31481: GraphQL query operations security can be bypassed

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-04-03T19:20:22.916Z
- Modified: 2026-06-17T09:10:28.647Z
- Also known as: GHSA-cg3c-245w-728m
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- api-platform core: >= 4.0.0, < 4.0.22; < 3.4.17
- api-platform/graphql (Packagist): from 4.0.0-alpha.1 before 4.0.22; before 3.4.17; from 4.1.0-alpha.1 before 4.1.5
- api-platform/core (Packagist): from 4.0.0-alpha.1 before 4.0.22; before 3.4.17; from 4.1.0-alpha.1 before 4.1.5

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `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> (web)
- <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://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)

## Sources

- CVE List: [CVE-2025-31481](https://www.cve.org/CVERecord?id=CVE-2025-31481), CVE Terms of Use, modified 2025-04-08
- GitHub Advisory Database: [GHSA-cg3c-245w-728m](https://github.com/advisories/GHSA-cg3c-245w-728m), CC-BY-4.0, modified 2025-08-29
- NVD: [CVE-2025-31481](https://nvd.nist.gov/vuln/detail/CVE-2025-31481), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31481 · Whole record: https://cve.day/CVE-2025-31481.json · Rebuilt by cve.day 2026-11-25T22:58:56.022Z
