CVE-2025-70948: @perfood/couch-auth host header injection in mailer

CVE-2025-70948 · Severity: low · CVSS 3.1 · Published 2026-03-05

@perfood/couch-auth is a Node.js authentication library used for managing user accounts and access control. A host header injection vulnerability in its email component allows attackers to intercept password reset tokens and account confirmation links by spoofing the HTTP Host header, enabling account takeover without authentication.

Technologies: @perfood/couch-auth (npm). Vendors: npm.

Quick answers

Is CVE-2025-70948 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-70948 being exploited in the wild.
How severe is CVE-2025-70948?
Low severity, with a CVSS score of 3.1, published 5 March 2026.
Which products and versions are affected?
@perfood/couch-auth (npm) SEMVER:introduced=0,last_affected=0.26.0.
Is there a fix for CVE-2025-70948?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2025-70948 attacked?
It is attacked over the network.
Am I affected by CVE-2025-70948?
Check whether you run @perfood/couch-auth (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A host header injection vulnerability (CWE-644, CWE-74) exists in the mailer component of @perfood/couch-auth v0.26.0 and earlier versions. The vulnerability stems from unsanitized use of the HTTP Host header when constructing password reset and email confirmation links sent to users. An attacker can send a request with a spoofed Host header, causing the mailer to embed a malicious domain in reset tokens and confirmation links. When users click these links in password reset or account verification emails, the attacker gains control over the authentication flow, enabling account takeover. Network reachable, requires user interaction (clicking malicious link), no authentication required for the attack.

Affected products

  • perfood @perfood/couch-auth 0.26.0 and earlier

Identifiers

  • CVE-2025-70948
  • GHSA-qw8v-34ww-6q9p

Timeline

  • 2026-03-05: disclosed
  • 2026-03-06: advisory: GHSA-qw8v-34ww-6q9p published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.