# CVE-2026-142211: Superagent through 10.4.2 Credential Leak via Cross-Origin Redirect Headers

Source: https://aplosec.si/cve/CVE-2026-142211/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142211

High 8.2 · Reported · No fix listed · CWE-212 · npm

# Superagent through 10.4.2 Credential Leak via Cross-Origin Redirect Headers

CVE-2026-142211 · published 2026-12-02

In plain words: this type of bug can expose passwords, tokens or private data to people who should not see them (information exposure). No fixed release is listed yet.

## Summary

CVE-2026-142211 affects superagent (npm) <= 10.4.2: Credential Leak via Cross-Origin Redirect Headers (CWE-212). No fixed release is listed. CVSS 4.0 base score 8.2 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

Superagent through 10.4.2 contains an information disclosure vulnerability in Request.prototype._redirect that forwards Authorization, Cookie and Proxy-Authorization headers to a different origin on redirect. Attacker-controlled servers in a redirect chain can return a 305 or other redirect to their host to capture bearer tokens, basic-auth credentials, session cookies or proxy credentials.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [Referencehttps://github.com/forwardemail/superagent/issues/1869](https://github.com/forwardemail/superagent/issues/1869)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/superagent-through-10.4.2-credential-leak-via-cross-origin-redirect-headers](https://www.vulncheck.com/advisories/superagent-through-10.4.2-credential-leak-via-cross-origin-redirect-headers)

- [Vulnerable codehttps://github.com/forwardemail/superagent/blob/v10.4.2/src/node/index.js#L734-L776](https://github.com/forwardemail/superagent/blob/v10.4.2/src/node/index.js#L734-L776)

- [Vulnerable codehttps://github.com/forwardemail/superagent/blob/v10.4.2/src/node/index.js#L1825-L1827](https://github.com/forwardemail/superagent/blob/v10.4.2/src/node/index.js#L1825-L1827)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142211](https://www.cve.org/CVERecord?id=CVE-2026-142211)

**Severity:** High 8.2 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142211)

**Package:** superagent

**Ecosystem:** npm

**Affected:** <= 10.4.2

**Fixed:** None

**Weakness:** CWE-212

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
