CVE-2025-64166 Details
Description
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.
A Cross-Site Request Forgery (CSRF) vulnerability exists in Mercurius, a GraphQL adapter for Fastify, in versions prior to 16.4.0. The issue stems from improper handling of the Content-Type header, allowing requests with certain Content-Type values to be incorrectly interpreted as application/json. This misinterpretation can bypass CORS preflight checks, potentially enabling unauthorized actions on behalf of authenticated users.
Users can update to Mercurius version 16.4.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mercurius-js/mercurius/security/advisories/GHSA-v66j-6wwf-jc57 | CISA-ADP | ExploitPatchVendor Advisory |
| https://github.com/mercurius-js/mercurius/commit/962d402ec7a92342f4a1b7f5f04af01776838c3c | [email protected] | Patch |
| https://github.com/mercurius-js/mercurius/pull/1187 | [email protected] | Issue TrackingPatch |
| https://github.com/mercurius-js/mercurius/security/advisories/GHSA-v66j-6wwf-jc57 | [email protected] | ExploitPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-352 | Cross-Site Request Forgery (CSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mercurius project mercurius | < 16.4.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 13, 2026 | Initial Analysis | [email protected] |
| Mar 5, 2026 | CVE Modified | CISA-ADP |
| Mar 5, 2026 | New CVE Received | [email protected] |