CVE-2026-49406
MEDIUM 5.5CVSS 3.1Deno: BYONM module resolution allows `package.json` main path traversal to bypass `--allow-read` restrictions
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.
- Published
- 23 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-968w-xfqw-vp9q
- Sources
- NVDJSONOSV GHSA-968w-xfqw-vp9qJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | deno | denocpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* |
< 2.7.12 | 2.7.12 |
| OSV | crates.io | deno | < 2.7.12 | 2.7.12 |
References
- https://github.com/denoland/deno/security/advisories/GHSA-968w-xfqw-vp9q · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-49406 · ADVISORY
- https://github.com/denoland/deno · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 23 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jun 2026)