CVE-2022-31150
undici before v5.8.0 vulnerable to CRLF injection in request headers
5.3
MEDIUM
CVSS 3.1
EPSS 0.51%
Description
undici is an HTTP/1.1 client, written from scratch for Node.js. It is possible to inject CRLF sequences into request headers in undici in versions less than 5.7.1. A fix was released in version 5.8.0. Sanitizing all HTTP headers from untrusted sources to eliminate `\r\n` is a workaround for this issue.
How to fix CVE-2022-31150
To remediate CVE-2022-31150, upgrade the affected package to a fixed version below.
- —upgrade to 5.8.0+dfsg1+~cs18.9.16-1 or later
- —upgrade to 5.8.0 or later
Is CVE-2022-31150 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 5.8.0+dfsg1+~cs18.9.16-1
- from 0, < 5.8.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |