{"id":"CVE-2025-31481","summary":"GraphQL query operations security can be bypassed","details":"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.","aliases":["GHSA-cg3c-245w-728m"],"modified":"2026-08-12T03:51:40.002707913Z","published":"2025-04-03T19:20:22.916Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-863"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31481.json"},"references":[{"type":"WEB","url":"https://github.com/api-platform/core/releases/tag/v3.4.17"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31481.json"},{"type":"ADVISORY","url":"https://github.com/api-platform/core/security/advisories/GHSA-cg3c-245w-728m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31481"},{"type":"FIX","url":"https://github.com/api-platform/core/commit/55712452b4f630978537bdb2a07dc958202336bb"},{"type":"FIX","url":"https://github.com/api-platform/core/commit/60747cc8c2fb855798c923b5537888f8d0969568"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/api-platform/core","events":[{"introduced":"825833cfee432e6b0988882d019b4fe4a03f63d5"},{"introduced":"0"},{"fixed":"8de9bf87f20a31f74102247cb8d75583797c6593"},{"fixed":"c5fb664d17ed9ae919394514ea69a5039d2ad9ab"},{"fixed":"55712452b4f630978537bdb2a07dc958202336bb"},{"fixed":"60747cc8c2fb855798c923b5537888f8d0969568"}],"database_specific":{"extracted_events":[{"introduced":"4.0.0"},{"fixed":"4.0.22"},{"introduced":"0"},{"fixed":"3.4.17"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v4.0.21","v4.0.20","v4.0.19","v4.0.18","v4.0.17","v4.0.16","v3.4.16","v4.0.15","v3.4.15","v3.4.14","v4.0.14","v3.4.11","v3.4.10","v4.0.13","v3.4.9","v4.0.12","v4.0.11","v3.4.8","v4.0.10","v3.4.7","v3.4.6","v4.0.9","v4.0.8","v4.0.7","v4.0.6","v3.4.5","v3.4.4","v4.0.5","v4.0.4","v3.4.3","v4.0.3","v3.4.2","v3.4.1","v4.0.2","v4.0.1","v3.4.0","v4.0.0-beta.2","v3.4.0-beta.1","v4.0.0-beta.1","v4.0.0-alpha.7","v4.0.0-alpha.6","v3.4.0-alpha.7","v3.4.0-alpha.6","v3.4.0-alpha.5","v4.0.0-alpha.5","v3.4.0-alpha.4","v3.4.0-alpha.3","v3.4.0-alpha.2","v3.4.0-alpha.1","v4.0.0-alpha.4","v4.0.0-alpha.3","v4.0.0-alpha.2","v4.0.0-alpha.1","v3.3.0-beta.2","v3.3.0-beta.1","v3.3.0-alpha.2","v3.3.0-alpha.1","v3.2.0-alpha.2","v3.2.0-alpha.1","v3.0.0","v3.0.0-rc.2","v3.0.0-rc.1","v3.0.0-beta.2","v2.7.0-alpha.2","v2.7.0-alpha.1","v2.6.0","v2.6.0-beta.1","v2.6.0-alpha.1","v2.5.0-beta.1","v2.4.0-beta.1","v2.3.0","v2.3.0-beta.1","v2.2.1","remove","push","v2.2.0","v2.2.0-beta.2","v2.2.0-beta.1","v2.1.0","v2.1.0-beta.2","v2.1.0-beta.1","v2.0.0","v2.0.0-rc.6","v2.0.0-rc.5","v2.0.0-rc.4","v2.0.0-rc.3","v2.0.0-rc.2","v2.0.0-rc.1","v2.0.0-beta.3","v2.0.0-beta.2","v2.0.0-beta.1","v2.0.0-alpha.2","v2.0.0-alpha.1","v1.0.0-beta.3","v1.0.0-beta.2","v1.0.0-beta"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31481.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}