Relative Path Traversal Affecting projen package, versions <0.101.37


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th 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 Learn

Learn about Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PROJEN-19823700
  • published15 Sept 2026
  • disclosed11 Sept 2026
  • creditEthanMiller

Introduced: 11 Sep 2026

NewCVE-2026-89065  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade projen to version 0.101.37 or higher.

Overview

projen is a CDK for software projects

Affected versions of this package are vulnerable to Relative Path Traversal in the manifest cleanup routine that processes .projen/files.json during synthesis, which resolves each manifest entry against the project directory with path.resolve() without verifying that the result remains inside that directory. An attacker can cause recursive deletion of arbitrary files and directories writable by the environment running projen, by placing an entry containing ../ sequences or an absolute path in .projen/files.json, which then reaches fs.rmSync() with recursion enabled. This requires the attacker to influence .projen/files.json through a direct commit or a pull request that triggers CI synthesis, and the deletion is bounded to paths writable by that process.

CVSS Base Scores

version 4.0
version 3.1