
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25651 is an open redirect vulnerability (CWE-601) in the client-certificate-auth Node.js middleware package, caused by Host header injection in the HTTP-to-HTTPS redirect logic. Versions 0.2.1 and 0.3.0 are affected; the issue was disclosed and patched on February 6, 2026. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) (Github Advisory, Security Advisory).
The root cause is the middleware's unconditional use of the unvalidated HTTP Host header when constructing HTTPS redirect URLs (CWE-601). The vulnerable code in lib/clientCertificateAuth.js reads: if (!req.secure && req.header('x-forwarded-proto') != 'https') { return res.redirect('https://' + req.header('host') + req.url); } — allowing an attacker who can manipulate the Host header to redirect victims to an arbitrary domain. Exploitation requires that HTTP traffic reaches the Node.js application directly without a reverse proxy or load balancer that sets x-forwarded-proto: https, a condition that is uncommon in modern production deployments (Security Advisory, Github Advisory).
Successful exploitation enables phishing attacks where victims following legitimate-looking links are silently redirected to attacker-controlled credential-harvesting pages. In OAuth/SSO authentication flows, authorization codes or tokens may leak to the attacker's domain via the redirect URL. Additionally, sensitive URL parameters can be exposed to attacker domains through the Referer header, and in deployments using shared caches, poisoned redirect responses may be served to multiple users (Security Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.019% (0.000280), indicating a very low probability of exploitation in the near term. Real-world exploitability is further constrained by the requirement that HTTP traffic reach the Node.js application without a proxy setting x-forwarded-proto: https, which is uncommon in modern infrastructure. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (Github Advisory, Security Advisory).
client-certificate-auth versions 0.2.1 or 0.3.0 that accepts direct HTTP connections without a reverse proxy enforcing x-forwarded-proto: https.http://vulnerable-app.example.com/login) to share with the victim via phishing email or message.Host header with an attacker-controlled domain (e.g., Host: attacker.com).302 Found response redirecting to https://attacker.com/login.302 redirect responses from the application server pointing to external or unfamiliar domains; HTTP requests to the application with a Host header value that does not match the application's configured hostname.302 responses where the Location header contains a domain other than the application's own domain; requests arriving over plain HTTP (port 80) that should normally be HTTPS-only.Upgrade client-certificate-auth to version 1.0.0 or later, which completely removes the vulnerable HTTP-to-HTTPS redirect behavior (npm install client-certificate-auth@^1.0.0). If immediate upgrading is not possible, block all HTTP traffic at the network or load balancer level, ensure your reverse proxy always sets the x-forwarded-proto: https header, or add middleware before clientCertificateAuth to validate the Host header against an allowlist of trusted domains. Implementing a strict Content-Security-Policy header can also help limit the impact of any redirect-based attacks (Security Advisory, v1.0.0 Release).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."