CVE-2025-64166

Source
https://cve.org/CVERecord?id=CVE-2025-64166
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-64166.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-64166
Aliases
Published
2026-03-05T15:31:45.641Z
Modified
2026-04-10T05:33:42.656567Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Mercurius: Incorrect Content-Type parsing can lead to CSRF attack
Details

Mercurius is a GraphQL adapter for Fastify. Prior to version 16.4.0, a cross-site request forgery (CSRF) vulnerability was identified. The issue arises from incorrect parsing of the Content-Type header in requests. Specifically, requests with Content-Type values such as application/x-www-form-urlencoded, multipart/form-data, or text/plain could be misinterpreted as application/json. This misinterpretation bypasses the preflight checks performed by the fetch() API, potentially allowing unauthorized actions to be performed on behalf of an authenticated user. This issue has been patched in version 16.4.0.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-352"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64166.json"
}
References

Affected packages

Git / github.com/mercurius-js/mercurius

Affected ranges

Type
GIT
Repo
https://github.com/mercurius-js/mercurius
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

13.*
13.0.0
8.*
8.1.2
Other
untagged-320a6f59c58f12bd5bea
v0.*
v0.7.0
v0.8.0
v1.*
v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.4.0
v1.5.0
v10.*
v10.0.0
v10.1.0
v10.1.1
v10.2.0
v10.3.0
v10.4.0
v10.5.0
v10.5.1
v11.*
v11.0.0
v11.0.1
v11.1.0
v11.2.0
v11.3.0
v11.4.0
v11.5.0
v12.*
v12.0.0
v12.0.1
v12.1.0
v12.2.0
v13.*
v13.1.0
v13.2.0
v13.2.1
v13.2.2
v13.3.0
v13.3.1
v13.3.2
v13.3.3
v13.4.0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