Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-49406— Deno: BYONM module resolution allows `package.json` main path traversal to bypass `--allow-read` restrictions

Quick assessment

Affected
denoland deno
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Deno是Deno组织开源的一个简单、现代且安全的 JavaScript 和 TypeScript 运行环境。 Deno Land Deno 2.7.12之前版本存在路径遍历漏洞,该漏洞源于模块解析器在BYONM模式下未验证包的入口点是否在node_modules/<pkg>/目录内,导致恶意package.json中的..段可解析到磁盘上的任意路径,并绕过--allow-read白名单读取文件。

CVSS 5.5 · Medium EPSS 0.18% · P6

Affected Version Matrix 1

VendorProduct Version RangeStatus
denoland deno < 2.7.12 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-49406

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Deno: BYONM module resolution allows `package.json` main path traversal to bypass `--allow-read` restrictions
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Deno Land Deno 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Deno是Deno组织开源的一个简单、现代且安全的 JavaScript 和 TypeScript 运行环境。 Deno Land Deno 2.7.12之前版本存在路径遍历漏洞,该漏洞源于模块解析器在BYONM模式下未验证包的入口点是否在node_modules/<pkg>/目录内,导致恶意package.json中的..段可解析到磁盘上的任意路径,并绕过--allow-read白名单读取文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
denoland deno < 2.7.12 -

II. Public POCs for CVE-2026-49406

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-49406

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-49406 (1)

Same Patch Batch · denoland · 2026-06-23 · 10 CVEs total

CVE-2026-49402 8.1 HIGH Deno: Command Injection via spawnSync & spawn on Windows
CVE-2026-49440 7.4 HIGH Deno: Miller-Rabin Primality Test Allows Zero Rounds
CVE-2026-44726 7.4 HIGH Deno: TLS retry copies stale upgrade hook, risking plaintext traffic
CVE-2026-49401 7.3 HIGH Deno Permission Bypass via Unicode Normalization Mismatch on macOS (APFS)
CVE-2026-49411 6.5 MEDIUM Deno Node TCPWrap numeric hostname aliases bypass --deny-net resolved-IP deny checks
CVE-2026-49983 5.2 MEDIUM Deno: process.loadEnvFile() bypasses env permission checks and mutates process.env with on
CVE-2026-49860 5.2 MEDIUM Deno: WebSocket API sandbox bypass via missing post-DNS check
CVE-2026-49859 5.2 MEDIUM Deno: `fetch()` API sandbox bypass via missing DNS resolution check
CVE-2026-55517 4.3 MEDIUM Deno: Denial of service via non-ASCII bytes in WebSocket response headers

IV. Related Vulnerabilities

V. Comments for CVE-2026-49406

No comments yet


Leave a comment