CVE-2026-49406

MEDIUM CVSS 3.1: 5.5 EPSS 0.18%
Updated Oct 26, 2026
Deno
Parameter Value
CVSS 5.5 (MEDIUM)
Affected Versions before 2.7.12
Fixed In 2.7.12
Type CWE-22 (Path Traversal)
Vendor Deno
Public PoC No

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.7.12, when Deno was run in BYONM mode (nodeModulesDir: "manual"), the module resolver did not validate that a package's resolved entrypoint stayed within its node_modules/<pkg>/ directory. A malicious package.json whose main field contained .. segments was able to resolve to an arbitrary path on disk, and the resolver then read that file without consulting the --allow-read allowlist.

This let a require("evil-pkg") call return the contents of a file that a direct Deno.readTextFileSync(...) call would have been blocked from reading. This vulnerability is fixed in 2.7.12.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Deno Deno
cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*
— 2.7.12