CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2022-31151

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 3.7 · low

Uncleared cookies on cross-host/cross-origin redirect in undici

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).

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.739% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 3.7 · published by GitHub_M
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:56:32.211Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:56:32.211ZCVE Program
epssverified2026-11-19T16:04:33.773ZFIRST EPSS
patchesverified2026-11-19T12:52:31.685ZOSV
affectedverified2026-11-19T12:56:32.211ZCVE Program
lifecycleverified2026-11-19T12:56:32.211ZCVE Program

Affected versions and configuration

nodejs undici; default status: unknown: < 5.7.1 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "nodejs",
      "product": "undici",
      "versions": [
        {
          "status": "affected",
          "version": "< 5.7.1"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/nodejs/undici/issues/872",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://hackerone.com/reports/1635514",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://security.netapp.com/advisory/ntap-20220909-0006/",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-03T07:11:39.602Z"
      }
    },
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2022-31151",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-04-22T15:45:24.308162Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-04-22T17:48:20.472Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-q768-x9m6-m9qp",
  "aliases": [
    "CVE-2022-31151"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.8.0"
            }
          ]
        }
      ],
      "package": {
        "name": "undici",
        "purl": "pkg:npm/undici",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-q768-x9m6-m9qp/GHSA-q768-x9m6-m9qp.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/nodejs/undici/security/advisories/GHSA-q768-x9m6-m9qp",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31151",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/nodejs/undici/issues/872",
      "type": "WEB"
    },
    {
      "url": "https://github.com/nodejs/undici/pull/1441",
      "type": "WEB"
    },
    {
      "url": "https://github.com/nodejs/undici/commit/0a5bee9465e627be36bac88edf7d9bbc9626126d",
      "type": "WEB"
    },
    {
      "url": "https://hackerone.com/reports/1635514",
      "type": "WEB"
    },
    {
      "url": "https://github.com/nodejs/undici",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/nodejs/undici/blob/main/lib/handler/redirect.js#L189",
      "type": "WEB"
    },
    {
      "url": "https://github.com/nodejs/undici/releases/tag/v5.8.0",
      "type": "WEB"
    },
    {
      "url": "https://security.netapp.com/advisory/ntap-20220909-0006",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-346",
      "CWE-601",
      "CWE-93"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "nvd_published_at": "2022-07-21T04:15:00Z",
    "github_reviewed_at": "2022-07-21T20:31:05Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packageundiciNot a distribution channel5.8.0Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history