CWE
601 346 200
Advisory Published
Updated

CVE-2022-31151: Uncleared cookies on cross-host/cross-origin redirect in undici

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 SoftwareAffected VersionHow to fix
Nodejs Undici<5.7.1

Remedy

By default, this vulnerability is not exploitable. In order to make sure this is mitigated, do not enable redirections, i.e.: `maxRedirections: 0`

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-31151?

    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.

  • How severe is CVE-2022-31151?

    CVE-2022-31151 has a severity score of 6.5, which is considered medium.

  • What software is affected by CVE-2022-31151?

    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.

  • How do I fix CVE-2022-31151?

    To fix CVE-2022-31151, you should update the undici package or Node.js Undici to version 5.7.1 or later.

  • Where can I find more information about CVE-2022-31151?

    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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203