Live threats

All CVEs / Mercurius Project

CVE-2025-64166Mercurius Project Mercurius

Medium 5.4 No auth needed

Priority
47
CVSS 3.1
5.4
EPSS
—
Auth required
No
Published
Mar 5, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-352
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mercurius.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mercurius < 16.4.0 16.4.0 npm install mercurius@16.4.0

Per OSV / GitHub Advisories (GHSA-v66j-6wwf-jc57). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mercurius_projectmercurius< 16.4.0

Official sources

References

Links published by the sources. Open them with care.