Arbitrary Code Injection Affecting nodejs16 package, versions <16.17.0-150300.7.9.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.1% (44th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES153-NODEJS16-3021722
  • published13 Sept 2022
  • disclosed12 Sept 2022

Introduced: 12 Sep 2022

CVE-2022-35948  (opens in a new tab)
CWE-74  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade SLES:15.3 nodejs16 to version 16.17.0-150300.7.9.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs16 package and not the nodejs16 package as distributed by SLES. See How to fix? for SLES:15.3 relevant fixed versions and status.

undici is an HTTP/1.1 client, written from scratch for Node.js.=&lt; 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 &#39;undici&#39; const unsanitizedContentTypeInput = &#39;application/json\r\n\r\nGET /foo2 HTTP/1.1&#39; await request(&#39;http://localhost:3000, { method: &#39;GET&#39;, headers: { &#39;content-type&#39;: 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.

CVSS Scores

version 3.1