First published: Wed Jul 20 2022(Updated: )
A flaw was found in the undici package. After cookie headers are set, they are not cleared. This issue could allow an attacker to take advantage of this cookie, which could be used to control the redirection target.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Nodejs Undici | <5.7.1 |
By default, this vulnerability is not exploitable. In order to make sure this is mitigated, do not enable redirections, i.e.: `maxRedirections: 0`
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-31151 is a vulnerability in the undici package that allows for accidental leakage of cookies to a third-party site during cross-origin redirects.
CVE-2022-31151 has a severity score of 6.5, which is considered medium.
The undici package version up to and excluding 5.7.1 is affected by CVE-2022-31151, as well as Node.js Undici versions up to and excluding 5.7.1.
To fix CVE-2022-31151, you should update the undici package or Node.js Undici to version 5.7.1 or later.
You can find more information about CVE-2022-31151 on the Red Hat website, including the associated security advisory (RHSA-2022:6696) and the Bugzilla entry.