Skip to main content
Public proof of conceptFix available

CVE-2025-64166

A public proof of concept exists; no exploitation attested.

  • Published2026-03-05
  • Fixed in16.4.0
  • WeaknessCWE-352

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-03-0516:16CVE publishedNVD

Versions per branch

NVD · OSV
Mercurius project mercurius
BranchAffectedFixed in
16.4< 16.4.016.4.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • mercurius-js mercurius
    Affected
    • = < 16.4.0no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-03-05

Fix

  1. Update Mercurius project mercurius to 16.4.0

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionpoc2026-03-05
  • CNACVSS 3.15.4known since 2026-10-23
  • CNAweakness (CWE)CWE-352known since 2026-10-23
  • FIRST EPSSEPSS score0.2 %2026-11-18
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryMODERATE2026-03-05

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Published
2026-03-05
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-v66j-6wwf-jc57

Frequently asked questions

What is CVE-2025-64166?

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.

Is CVE-2025-64166 actively exploited?

A proof-of-concept exploit exists for CVE-2025-64166, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-64166?

CVE-2025-64166 has a CVSS v3 base score of 5.4 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.

Running mercurius? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record