Security mailing lists by PureSourceCode

CVE-2025-64166

MEDIUM 5.4CVSS 3.1

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

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.

Published
5 Mar 2026
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-352
Also known as
GHSA-v66j-6wwf-jc57
Sources
NVDJSONOSV GHSA-v66j-6wwf-jc57JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD mercurius_project mercurius
cpe:2.3:a:mercurius_project:mercurius:*:*:*:*:*:node.js:*:*
< 16.4.0 16.4.0
OSV npm mercurius < 16.4.0 16.4.0

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 5 Mar 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.