CVE-2022-31150 CRLF injection in request headers
MediumCVSS 6.5
EPSS 1.5%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
9 packages: 5 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-undici(Ubuntu 24.04) | = 5.22.1+dfsg1+~cs20.10.10.2-1ubuntu1; = 5.26.3+dfsg1+~cs23.10.12-2; All versions | No fix listed | No fix yet |
| ubuntu/node-undici(Ubuntu 25.10) | = 7.3.0+dfsg1+~cs24.12.11-1; = 7.3.0+dfsg1+~cs24.12.11-2; All versions | No fix listed | No fix yet |
| ubuntu/node-undici(Ubuntu 26.04) | = 7.3.0+dfsg1+~cs24.12.11-2; = 7.16.0+dfsg+~cs3.2.0-2; = 7.18.2+dfsg+~cs3.2.0-1; = 7.18.2+dfsg+~cs3.2.0-1build1 +1 more | No fix listed | No fix yet |
| ubuntu/node-undici(Ubuntu 26.10) | = 7.18.2+dfsg+~cs3.2.0-1build1; = 7.24.6+dfsg+~cs3.2.0-3; = 8.5.0+dfsg+~cs3.2.0-2; = 8.5.0+dfsg+~cs3.2.0-3 +2 more | No fix listed | No fix yet |
| debian/node-undici(Debian 12) | < 5.8.0+dfsg1+~cs18.9.16-1 | 5.8.0+dfsg1+~cs18.9.16-1 | Fixed |
| debian/node-undici(Debian 13) | < 5.8.0+dfsg1+~cs18.9.16-1 | 5.8.0+dfsg1+~cs18.9.16-1 | Fixed |
| debian/node-undici(Debian 14) | < 5.8.0+dfsg1+~cs18.9.16-1 | 5.8.0+dfsg1+~cs18.9.16-1 | Fixed |
| nodejs undici | < 5.8.0; = < v5.7.1, >= v5.8.0 | 5.8.0 | Fixed |
| npm undici(npm) | < 5.8.0 | 5.8.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm undici(npm) | < 5.8.0 | 5.8.0 |
| nodejs undici | = < v5.7.1, >= v5.8.0 | No fix listed |
| nodejs undici | < 5.8.0 | 5.8.0 |
| ubuntu/node-undici(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-undici(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-undici(Ubuntu:26.10) | All versions | No fix listed |
| debian/node-undici(Debian:12) | < 5.8.0+dfsg1+~cs18.9.16-1 | 5.8.0+dfsg1+~cs18.9.16-1 |
| debian/node-undici(Debian:14) | < 5.8.0+dfsg1+~cs18.9.16-1 | 5.8.0+dfsg1+~cs18.9.16-1 |
| debian/node-undici(Debian:13) | < 5.8.0+dfsg1+~cs18.9.16-1 | 5.8.0+dfsg1+~cs18.9.16-1 |
| ubuntu/node-undici(Ubuntu:24.04) | = 5.22.1+dfsg1+~cs20.10.10.2-1ubuntu1 | No fix listed |
| ubuntu/node-undici(Ubuntu:24.04) | = 5.26.3+dfsg1+~cs23.10.12-2 | No fix listed |
| ubuntu/node-undici(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/node-undici(Ubuntu:25.10) | = 7.3.0+dfsg1+~cs24.12.11-1 | No fix listed |
| ubuntu/node-undici(Ubuntu:25.10) | = 7.3.0+dfsg1+~cs24.12.11-2 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.10) | = 7.18.2+dfsg+~cs3.2.0-1build1 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.10) | = 7.24.6+dfsg+~cs3.2.0-3 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.10) | = 8.5.0+dfsg+~cs3.2.0-2 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.10) | = 8.5.0+dfsg+~cs3.2.0-3 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.10) | = 8.9.0+dfsg+~cs3.2.0-1 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.04) | = 7.3.0+dfsg1+~cs24.12.11-2 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.04) | = 7.16.0+dfsg+~cs3.2.0-2 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.04) | = 7.18.2+dfsg+~cs3.2.0-1 | No fix listed |
| ubuntu/node-undici(Ubuntu:26.04) | = 7.18.2+dfsg+~cs3.2.0-1build1 | No fix listed |
References
- github.com exploit issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- hackerone.com exploit issue-tracking third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- security.netapp.com third-party-advisory
- github.com
- Debian Security Tracker CVE-2022-31150 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- github.com product