CVE-2022-35948
Published on: Not Yet Published
Last Modified on: 03/28/2023 05:08:00 PM UTC
Certain versions of Undici from Nodejs contain the following vulnerability:
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< [email protected]` users are vulnerable to _CRLF Injection_ on headers when using unsanitized input as request headers, more specifically, inside the `content-type` header. Example: ``` import { request } from 'undici' const unsanitizedContentTypeInput = 'application/json\r\n\r\nGET /foo2 HTTP/1.1' await request('http://localhost:3000, { method: 'GET', headers: { 'content-type': unsanitizedContentTypeInput }, }) ``` The above snippet will perform two requests in a single `request` API call: 1) `http://localhost:3000/` 2) `http://localhost:3000/foo2` This issue was patched in Undici v5.8.1. Sanitize input when sending content-type headers using user input as a workaround.
- CVE-2022-35948 has been assigned by
[email protected] to track the vulnerability - currently rated as MEDIUM severity.
- Affected Vendor/Software:
nodejs - undici version =< 5.8.0
CVSS3 Score: 5.3 - MEDIUM
Attack Vector ⓘ |
Attack Complexity |
Privileges Required |
User Interaction |
---|---|---|---|
NETWORK | LOW | NONE | NONE |
Scope | Confidentiality Impact |
Integrity Impact |
Availability Impact |
UNCHANGED | NONE | LOW | NONE |
CVE References
Description | Tags ⓘ | Link |
---|---|---|
Merge pull request from GHSA-f772-66g8-q5h3 · nodejs/[email protected] · GitHub | github.com text/html |
![]() |
Release v5.8.2 · nodejs/undici · GitHub | github.com text/html |
![]() |
CRLF Injection in Nodejs ‘undici’ via Content-Type · Advisory · nodejs/undici · GitHub | github.com text/html |
![]() |
Related QID Numbers
Known Affected Configurations (CPE V2.3)
Type | Vendor | Product | Version | Update | Edition | Language |
---|---|---|---|---|---|---|
Application | Nodejs | Undici | All | All | All | All |
- cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*:
Social Mentions
Source | Title | Posted (UTC) |
---|---|---|
![]() |
CVE-2022-35948 is about a CRLF Injection in Nodejs ‘undici’ via Content-Type. github.com/nodejs/undici/… | 2022-08-09 09:45:29 |
![]() |
CVE-2022-35948 : undici is an HTTP/1.1 client, written from scratch for Node.js.`=< [email protected]` users are vulnera… twitter.com/i/web/status/1… | 2022-08-13 23:36:03 |
![]() |
Potentially Critical CVE Detected! CVE-2022-35948 undici is an HTTP/1.1 client, written from scratch for Node.js.`=… twitter.com/i/web/status/1… | 2022-08-14 01:56:00 |
![]() |
CVE-2022-35948 har-sia.info/CVE-2022-35948… #HarsiaInfo | 2022-08-15 07:01:05 |
![]() |
Nodejs - CVE-2022-35948: github.com/nodejs/undici/… | 2022-08-15 13:18:14 |
![]() |
CVE-2022-35948 | 2022-08-14 00:38:40 |