CVE-2025-70948: @perfood/couch auth @perfood/couch-auth Has A Host Header Vulnerability
MODERATECVE-2025-70948 is a MODERATE (CVSS 9.3) @perfood/couch-auth has a host header vulnerability (CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax) affecting @perfood/couch auth libraries in the npm ecosystem. The issue involves @perfood/couch-auth has a host header injection vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2025-70948 at a Glance
Security Impact
CVSS: 9.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2025-70948
To remediate this vulnerability, upgrade all affected @perfood/couch auth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @perfood/couch-auth@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @perfood/couch-auth
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-70948, inspect your project dependencies using npm:
npm ls @perfood/couch-auth
Analyze the terminal output to locate any version of @perfood/couch auth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls @perfood/couch-auth command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax, where the product does not neutralize or incorrectly neutralizes web scripting syntax in http headers that can be used by web browser components that can process raw headers, such as flash. In @perfood/couch auth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-70948 Affected @perfood/couch auth Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@perfood/couch-auth
|
npm |
≤ 0.26.0
|
|
References
Frequently Asked Questions
What is CVE-2025-70948?
Which @perfood/couch auth versions are affected?
What version fixes CVE-2025-70948?
Is @perfood/couch-auth affected?
What is the CVSS score of CVE-2025-70948?
What CWE is associated with CVE-2025-70948?
How can I check npm dependencies for CVE-2025-70948?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qw8v-34ww-6q9p",
"modified" : "2026-03-06T23:00:43Z",
"published" : "2026-03-05T21:30:49Z",
"aliases" : [ "CVE-2025-70948" ],
"summary" : "@perfood/couch-auth has a host header injection vulnerability",
"details" : "A host header injection vulnerability in the mailer component of @perfood/couch-auth v0.26.0 allows attackers to obtain reset tokens and execute an account takeover via spoofing the HTTP Host header.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@perfood/couch-auth"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.26.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-70948"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/0xHunterr/38aab644874ca9f4646524c5b01cfe5e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/perfood/couch-auth"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/@perfood/couch-auth"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-644", "CWE-74" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-06T23:00:43Z",
"nvd_published_at" : "2026-03-05T21:16:13Z"
}
}