Improper Preservation of Permissions Affecting nodejs20-docs package, versions <1:20.20.0-1.amzn2023.0.1


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.01% (2nd 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-AMZN2023-NODEJS20DOCS-15245989
  • published6 Feb 2026
  • disclosed20 Jan 2026

Introduced: 20 Jan 2026

CVE-2025-55130  (opens in a new tab)
CWE-281  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 nodejs20-docs to version 1:20.20.0-1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2026-1402.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs20-docs package and not the nodejs20-docs package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

A flaw in Node.js’s Permissions model allows attackers to bypass --allow-fs-read and --allow-fs-write restrictions using crafted relative symlink paths. By chaining directories and symlinks, a script granted access only to the current directory can escape the allowed path and read sensitive files. This breaks the expected isolation guarantees and enables arbitrary file read/write, leading to potential system compromise. This vulnerability affects users of the permission model on Node.js v20, v22, v24, and v25.

CVSS Base Scores

version 3.1