{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "10.4.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "d26bf6ae1a181a00dc71b756d03e8120b92207c4"
            }
          ],
          "repo": "https://github.com/forwardemail/superagent",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-212"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142211.json"
  },
  "details": "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.",
  "id": "CVE-2026-142211",
  "modified": "2026-12-02T23:46:01.514131504Z",
  "published": "2026-12-02T16:50:35.578Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142211.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/forwardemail/superagent"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/forwardemail/superagent/blob/v10.4.2/src/node/index.js#L1825-L1827"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/forwardemail/superagent/blob/v10.4.2/src/node/index.js#L734-L776"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/forwardemail/superagent/issues/1869"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142211"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/superagent-through-10.4.2-credential-leak-via-cross-origin-redirect-headers"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Superagent through 10.4.2 Credential Leak via Cross-Origin Redirect Headers"
}