Skip to content
Heist/ feed
Back to feed
MediumFix available

node-undici — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2022-31151

Authorization headers are cleared on cross-origin redirect. However, cookie headers which are sensitive headers and are official headers found in the spec, remain uncleared. There are active users using cookie headers in undici. This may lead to accidental leakage of cookie to a 3rd-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the 3rd party site. This was patched in v5.7.1. By default, this vulnerability is not exploitable. Do not enable redirections, i.e. `maxRedirections: 0` (the default).

Products
node-undici
Affected versions
Not specified
Fixed versions
5.8.0+dfsg1+~cs18.9.16-1
CVEs
CVE-2022-31151
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:44 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-31151

core-osv · Original source

Published 21 Jul 2022, 04:15 UTC

Authorization headers are cleared on cross-origin redirect. However, cookie headers which are sensitive headers and are official headers found in the spec, remain uncleared. There are active users using cookie headers in undici. This may lead to accidental leakage of cookie to a 3rd-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the 3rd party site. This was patched in v5.7.1. By default, this vulnerability is not exploitable. Do not enable redirections, i.e. `maxRedirections: 0` (the default).

osv:DEBIAN-CVE-2022-31151

node-undici

Fixed versions: 5.8.0+dfsg1+~cs18.9.16-1

node-undici

Fixed versions: 5.8.0+dfsg1+~cs18.9.16-1

node-undici

Fixed versions: 5.8.0+dfsg1+~cs18.9.16-1

Complete source record
{
  "id": "cf120ea5f2b83c3977506473f37f543a14740eb523dea2fbffdb83f44131ab5a",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-31151",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-31151",
    "summary": "Authorization headers are cleared on cross-origin redirect. However, cookie headers which are sensitive headers and are official headers found in the spec, remain uncleared. There are active users using cookie headers in undici. This may lead to accidental leakage of cookie to a 3rd-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the 3rd party site. This was patched in v5.7.1. By default, this vulnerability is not exploitable. Do not enable redirections, i.e. `maxRedirections: 0` (the default).",
    "evidence": "osv:DEBIAN-CVE-2022-31151",
    "products": [
      {
        "name": {
          "value": "node-undici",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.8.0+dfsg1+~cs18.9.16-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-undici",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.8.0+dfsg1+~cs18.9.16-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "node-undici",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.8.0+dfsg1+~cs18.9.16-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2022-31151",
      "aliases": [
        "DEBIAN-CVE-2022-31151"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.8.0+dfsg1+~cs18.9.16-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-undici",
            "purl": "pkg:deb/debian/node-undici?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31151.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.8.0+dfsg1+~cs18.9.16-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-undici",
            "purl": "pkg:deb/debian/node-undici?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31151.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.8.0+dfsg1+~cs18.9.16-1"
                }
              ]
            }
          ],
          "package": {
            "name": "node-undici",
            "purl": "pkg:deb/debian/node-undici?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-31151.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:01:51.661730486Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-31151"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-31151"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-31151",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 323175,
  "published_at": "2022-07-21T04:15:12.157+00:00"
}