CVE-2022-35948

Summary

CVECVE-2022-35948
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-08-15 11:21:00 UTC
Updated2023-03-28 17:08:00 UTC
Descriptionundici 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.

Risk And Classification

Problem Types: CWE-74 | CWE-93

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Nodejs Undici All All All All

References

ReferenceSourceLinkTags
Merge pull request from GHSA-f772-66g8-q5h3 · nodejs/undici@66165d6 · GitHub MISC github.com
Release v5.8.2 · nodejs/undici · GitHub MISC github.com
CRLF Injection in Nodejs ‘undici’ via Content-Type · Advisory · nodejs/undici · GitHub CONFIRM github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 184306 Debian Security Update for node-undici (CVE-2022-35948)
  • 753302 SUSE Enterprise Linux Security Update for nodejs16 (SUSE-SU-2022:3251-1)
  • 753318 SUSE Enterprise Linux Security Update for nodejs16 (SUSE-SU-2022:3250-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report