Path Traversal Vulnerability in Deno JavaScript Runtime
CVE-2026-49406
5.5MEDIUM
What is CVE-2026-49406?
Deno, a runtime for JavaScript and TypeScript, contains a critical vulnerability in its module resolver prior to version 2.7.12. This issue arises when Deno operates in BYONM mode with a custom nodeModulesDir setting. The resolver fails to validate the integrity of entry points defined in malicious package.json files, allowing these files to include '..' segments that can lead to arbitrary file paths on the disk. As a result, unauthorized files can be accessed beyond the predefined read restrictions of Deno, which poses a significant security risk. This vulnerability has been addressed in version 2.7.12 of Deno.
Affected Version(s)
deno < 2.7.12
