Open Redirect Affecting node-undici package, versions <5.8.0+dfsg1+~cs18.9.16-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.15% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIANUNSTABLE-NODEUNDICI-2959874
  • published24 Jul 2022
  • disclosed21 Jul 2022

Introduced: 21 Jul 2022

CVE-2022-31151  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade Debian:unstable node-undici to version 5.8.0+dfsg1+~cs18.9.16-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-undici package and not the node-undici package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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

CVSS Scores

version 3.1