Arbitrary Code Injection Affecting nodejs package, versions <18.14.1-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.19% (57th 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-ALPINE320-NODEJS-7010489
  • published23 May 2024
  • disclosed16 Feb 2023

Introduced: 16 Feb 2023

CVE-2023-23936  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade Alpine:3.20 nodejs to version 18.14.1-r0 or higher.

NVD Description

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

Undici is an HTTP/1.1 client for Node.js. Starting with version 2.0.0 and prior to version 5.19.1, the undici library does not protect host HTTP header from CRLF injection vulnerabilities. This issue is patched in Undici v5.19.1. As a workaround, sanitize the headers.host string before passing to undici.

CVSS Scores

version 3.1