CVE-2024-21890 Affecting nodejs-16 package, versions <16.20.2-r11


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
1.44% (81st 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-CHAINGUARDLATEST-NODEJS16-9510143
  • published22 Mar 2025
  • disclosed20 Feb 2024

Introduced: 20 Feb 2024

CVE-2024-21890  (opens in a new tab)

How to fix?

Upgrade Chainguard nodejs-16 to version 16.20.2-r11 or higher.

NVD Description

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

The Node.js Permission Model does not clarify in the documentation that wildcards should be only used as the last character of a file path. For example:

 --allow-fs-read=/home/node/.ssh/*.pub

will ignore pub and give access to everything after .ssh/.

This misleading documentation affects all users using the experimental permission model in Node.js 20 and Node.js 21.

Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

CVSS Base Scores

version 3.1