Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-35948— CRLF Injection in Nodejs ‘undici’ via Content-Type

Quick assessment

Affected
nodejs undici
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

undici是一个HTTP/1.1客户端。 undici 5.8.0及之前版本存在安全漏洞,该漏洞源于用户在使用未经过滤的输入作为请求标头时容易受到标头上的 _CRLF Injection_ 的影响。

CVSS 5.3 · Medium EPSS 1.27% · P68

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-35948

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
CRLF Injection in Nodejs ‘undici’ via Content-Type
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对CRLF序列的转义处理不恰当(CRLF注入)
Source: CVE Program / CVE List V5
Vulnerability Title
undici 注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
undici是一个HTTP/1.1客户端。 undici 5.8.0及之前版本存在安全漏洞,该漏洞源于用户在使用未经过滤的输入作为请求标头时容易受到标头上的 _CRLF Injection_ 的影响。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
nodejs undici =< 5.8.0 -

II. Public POCs for CVE-2022-35948

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-35948

登录查看更多情报信息。

Patches & Fixes for CVE-2022-35948 (1)

Vendor Advisories for CVE-2022-35948 (1)

Other References for CVE-2022-35948 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-35948

No comments yet


Leave a comment