CVE-2022-31150
nodejs16: CRLF injection in node-undici
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness: CWE-93
Affected packages · 3
Operating systems · 7 fixes
SUSE Linux Enterprise 1 release · 1 package
fixed 1
nodejs16
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | nodejs16 +3 | 16.17.0-150400.3.6.1 | SUSE-SU-2022:3250-1 |
debian 3 releases · 1 package
fixed 3
node-undici
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | 5.8.0+dfsg1+~cs18.9.16-1 |
| 13 | node-undici | 5.8.0+dfsg1+~cs18.9.16-1 |
| 14 | node-undici | 5.8.0+dfsg1+~cs18.9.16-1 |
echo 1 release · 1 package
fixed 1
node-undici
| Release | Package | Fixed in |
|---|---|---|
| node-undici | 5.8.0+dfsg1+~cs18.9.16-1 |
openSUSE 1 release · 1 package
fixed 1
corepack16
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack16 +4 | 16.17.0-2.1 | openSUSE-SU-2024:12285-1 |
root.io debian 1 release · 1 package
fixed 1
rootio-node-undici
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-node-undici | 5.8.0+dfsg1+~cs18.9.16-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-31150
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/commit/a29a151d0140d095742d21a004023d024fe93259
- github.com https://github.com/nodejs/undici/releases/tag/v5.8.0
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcc
- hackerone.com https://hackerone.com/reports/409943
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-31150
- security.netapp.com https://security.netapp.com/advisory/ntap-20220915-0002
- security.netapp.com https://security.netapp.com/advisory/ntap-20220915-0002/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-31150
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.