CVE-2025-64166CWE-352

Mercurius: Incorrect Content-Type parsing can lead to CSRF attack

Medium · published March 5, 2026

CVSS v3.1
5.4
EPSS
0%
Percentile
5.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.4 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00169 · 5.9th percentile
Weakness
CWE-352 · Cross-Site Request Forgery (CSRF)
Published
2026-03-05T15:31Z
EPSS history
Timeline
  • 05 MAR 15:31Z
    Mercurius: Incorrect Content-Type parsing can lead to CSRF attack
    cvelistv5