CVE-2022-35948

CVSS V2 None CVSS V3 Medium 5.3
Description
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< undici@5.8.0` 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.
Overview
  • CVE ID
  • CVE-2022-35948
  • Assigner
  • security-advisories@github.com
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2022-08-15T11:21:38
  • Last Modified Date
  • 2023-03-28T17:08:29
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* 1 OR 5.8.2
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Attack Vector
  • NETWORK
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • NONE
  • Availability Impact
  • NONE
  • Base Score
  • 5.3
  • Base Severity
  • MEDIUM
  • Exploitability Score
  • 3.9
  • Impact Score
  • 1.4
History
Created Old Value New Value Data Type Notes
2022-08-15 12:00:07 Added to TrackCVE
2023-01-18 22:13:39 2023-01-18T21:15:10 CVE Modified Date updated
2023-01-18 22:13:39 Analyzed Modified Vulnerability Status updated
2023-01-18 22:13:40 Weakness Enumeration update
2023-01-19 19:12:26 Modified Undergoing Analysis Vulnerability Status updated
2023-03-28 18:13:02 2023-03-28T17:08:29 CVE Modified Date updated
2023-03-28 18:13:02 Undergoing Analysis Analyzed Vulnerability Status updated