CVE-2022-31150
published 2022-07-19CVE-2022-31150: 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…
PriorityP434medium6.5CVSS 3.1
AVNACLPRNUINSUCLILAN
EPSS
1.16%
63.3th percentile
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.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | node-undici | < node-undici 5.8.0+dfsg1+~cs18.9.16-1 (bookworm) | node-undici 5.8.0+dfsg1+~cs18.9.16-1 (bookworm) |
| nodejs | undici | < v5.7.1, >= v5.8.0 | v5.7.1, >= v5.8.0 |
| nodejs | undici | < 5.8.0 | 5.8.0 |
| nodejs | undici | >= 0 < 5.8.0 | 5.8.0 |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
ghsa7.5HIGH
osv7.5HIGH
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
undici before v5.8.0 vulnerable to CRLF injection in request headers
ghsa·2022-07-21·CVSS 7.5
CVE-2022-31150 [HIGH] CWE-93 undici before v5.8.0 vulnerable to CRLF injection in request headers
undici before v5.8.0 vulnerable to CRLF injection in request headers
### Impact
It is possible to inject CRLF sequences into request headers in Undici.
```js
const undici = require('undici')
const response = undici.request("http://127.0.0.1:1000", {
headers: {'a': "\r\nb"}
})
```
The same applies to `path` and `method`
### Patches
Update to v5.8.0
### Workarounds
Sanitize all HTTP headers from untrusted sources to eliminate `\r\n`.
### References
https://hackerone.com/reports/409943
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12116
### For more information
If you have any questions or comments about this advisory:
* Open an issue in [undici repository](https://github.com/nodejs/undici/issues)
* To make a report, follow the [SECURITY](https://github.com/nodejs/node
OSV
undici before v5.8.0 vulnerable to CRLF injection in request headers
osv·2022-07-21·CVSS 7.5
CVE-2022-31150 [HIGH] undici before v5.8.0 vulnerable to CRLF injection in request headers
undici before v5.8.0 vulnerable to CRLF injection in request headers
### Impact
It is possible to inject CRLF sequences into request headers in Undici.
```js
const undici = require('undici')
const response = undici.request("http://127.0.0.1:1000", {
headers: {'a': "\r\nb"}
})
```
The same applies to `path` and `method`
### Patches
Update to v5.8.0
### Workarounds
Sanitize all HTTP headers from untrusted sources to eliminate `\r\n`.
### References
https://hackerone.com/reports/409943
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-12116
### For more information
If you have any questions or comments about this advisory:
* Open an issue in [undici repository](https://github.com/nodejs/undici/issues)
* To make a report, follow the [SECURITY](https://github.com/nodejs/node
OSV
CVE-2022-31150: undici is an HTTP/1
osv·2022-07-19·CVSS 6.5
CVE-2022-31150 [MEDIUM] CVE-2022-31150: undici is an HTTP/1
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.
Red Hat
nodejs16: CRLF injection in node-undici
vendor_redhat·2022-07-19·CVSS 5.3
CVE-2022-31150 [MEDIUM] CWE-93 nodejs16: CRLF injection in node-undici
nodejs16: CRLF injection in node-undici
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.
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.
Package: rhacm2/search-ui-rhel8 (Red Hat Advanced Cluster Management for Kubernetes 2) - Affected
Package: devspaces/dashboard-rhel8 (Red Hat OpenShift Dev Spaces) - Affected
Debian
CVE-2022-31150: node-undici - undici is an HTTP/1.1 client, written from scratch for Node.js. It is possible t...
vendor_debian·2022·CVSS 5.3
CVE-2022-31150 [MEDIUM] CVE-2022-31150: node-undici - undici is an HTTP/1.1 client, written from scratch for Node.js. It is possible t...
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.
Scope: local
bookworm: resolved (fixed in 5.8.0+dfsg1+~cs18.9.16-1)
forky: resolved (fixed in 5.8.0+dfsg1+~cs18.9.16-1)
sid: resolved (fixed in 5.8.0+dfsg1+~cs18.9.16-1)
trixie: resolved (fixed in 5.8.0+dfsg1+~cs18.9.16-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/nodejs/undici/releases/tag/v5.8.0https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcchttps://hackerone.com/reports/409943https://security.netapp.com/advisory/ntap-20220915-0002/https://github.com/nodejs/undici/releases/tag/v5.8.0https://github.com/nodejs/undici/security/advisories/GHSA-3cvr-822r-rqcchttps://hackerone.com/reports/409943https://security.netapp.com/advisory/ntap-20220915-0002/
2022-07-19
Published