CVE-2025-64166: Mercurius - Cross-Site Request Forgery
- Cve: CVE-2025-64166
- Name: Mercurius - Cross-Site Request Forgery
- 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.
- Impact: Attackers can perform unauthorized actions on behalf of authenticated users, leading to potential account compromise or data manipulation.
- Remediation: Update to version 16.4.0 or later.
- Vulnerability type: cross_site_request_forgery
- Vulnerability impact: cross_site_request_forgery
- Requirement type: logged_in
- Requirements: Victim must be authenticated and send crafted requests
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- Epss score: 0.00184
- Epss percentile: 0.07926
- Assignee: [email protected]
- Published at: 2026-03-05T16:16:11Z
- Age in days: 264
- Modified at: 2026-06-17T09:53:56Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-64166
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-352 | Cross-Site Request Forgery |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/mercurius-js/mercurius/security/advisories/GHSA-v66j-6wwf-jc57 | nvd | 2026-03-05 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/mercurius-js/mercurius/commit/962d402ec7a92342f4a1b7f5f04af01776838c3c | Patch |
| https://github.com/mercurius-js/mercurius/pull/1187 | Issue Tracking, Patch |
| https://github.com/mercurius-js/mercurius/security/advisories/GHSA-v66j-6wwf-jc57 | Exploit, Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mercurius_project:mercurius | < 16.4.0 | no | nvd | /v1/products/mercurius_project/mercurius |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| mercurius-js/mercurius | commit, fix, package, pull, security_advisory | yes | /v1/repositories/mercurius-js/mercurius |
Index
- Repositories: 2
- Repositories high signal: 2
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-03-05
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts