# GraphQL query operations security can be bypassed

Advisory record · `GHSA-cg3c-245w-728m`

- **Identifiers:** `GHSA-cg3c-245w-728m` · `CVE-2025-31481` · `PKSA-gnn4-pxdg-q76m` · `PKSA-rfnk-z282-zpmp`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-863](https://cwe.mitre.org/data/definitions/863.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 4 Apr 2025
- **Updated:** 29 Aug 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 4 Apr 2025, 14:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `api-platform/graphql` (Packagist): affected `>=4.0.0-alpha.1, <4.0.22 || <3.4.17 || >=4.1.0-alpha.1, <4.1.5`; fixed in `4.0.22`, `3.4.17`, `4.1.5`
- `api-platform/core` (Packagist): affected `>=4.0.0-alpha.1, <4.0.22 || <3.4.17 || >=4.1.0-alpha.1, <4.1.5`; fixed in `4.0.22`, `3.4.17`, `4.1.5`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> api-platform/graphql and api-platform/core are affected below 3.4.17, from 4.0.0-alpha.1 to below 4.0.22, and from 4.1.0-alpha.1 to below 4.1.5. Any API user can use the Relay node field to skip the security check and access any entity. Upgrade to 3.4.17, 4.0.22, or 4.1.5.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0047, the 41st percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:26 UTC: First seen by agentprime
- 31 Oct 2026, 14:26 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-cg3c-245w-728m)

## Sources

- [GitHub Advisory Database: GHSA-cg3c-245w-728m](https://github.com/advisories/GHSA-cg3c-245w-728m)
- [OSV: GHSA-cg3c-245w-728m](https://osv.dev/vulnerability/GHSA-cg3c-245w-728m)
- <https://github.com/api-platform/core/security/advisories/GHSA-cg3c-245w-728m>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31481>
- <https://github.com/api-platform/core/commit/55712452b4f630978537bdb2a07dc958202336bb>
- <https://github.com/api-platform/core/commit/60747cc8c2fb855798c923b5537888f8d0969568>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/core/CVE-2025-31481.yaml>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/api-platform/graphql/CVE-2025-31481.yaml>
- <https://github.com/api-platform/core>
- <https://github.com/api-platform/core/releases/tag/v3.4.17>
- <https://github.com/api-platform/core/releases/tag/v4.1.5>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-cg3c-245w-728m>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-cg3c-245w-728m/>. Everything for agents: <https://agentprime.io/llms.txt>.
