CVE-2026-142211: Superagent through 10.4.2 Credential Leak via Cross-Origin Redirect Headers
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.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to credential leakage?
Applications using affected Superagent versions are exposed when they make requests that include Authorization, Cookie, or Proxy-Authorization headers and follow a redirect to a different origin. The redirect chain must include an attacker-controlled server or otherwise redirect to an attacker-controlled host.
What does an attacker need to exploit this issue?
An attacker needs to cause an affected request to follow a cross-origin redirect to a host they control. They can use a 305 or another redirect response to receive forwarded bearer tokens, basic-auth credentials, session cookies, or proxy credentials.
Are credentials sent only to the original destination at risk?
No. The issue occurs because Request.prototype._redirect forwards sensitive headers when the redirect target changes origin, allowing a different host in the redirect chain to receive them.