First published: Tue Jul 19 2022(Updated: )
A flaw was found in the undici package. When requesting an input on an unsanitized request path, method, or headers it is possible to inject Carriage Return/Line Feed (CRLF) sequences into these requests.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Nodejs Undici | <5.8.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-31150 is a vulnerability in the undici package that allows for the injection of CRLF sequences into request headers in undici versions prior to 5.7.1.
CVE-2022-31150 has a severity level of medium, with a CVSS score of 6.5.
To fix CVE-2022-31150, you should update undici to version 5.8.0 or later.
undici is an HTTP/1.1 client library written from scratch for Node.js.
Yes, sanitizing all HTTP headers from untrusted sources to eliminate `\r\n` can be used as a workaround for CVE-2022-31150.