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

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-16T19:11:26.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-968w-xfqw-vp9q
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- denoland deno: < 2.7.12
- deno (crates.io): before 2.7.12
- deno deno: before 2.7.12

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-49406](https://www.cve.org/CVERecord?id=CVE-2026-49406), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-968w-xfqw-vp9q](https://github.com/advisories/GHSA-968w-xfqw-vp9q), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-49406](https://nvd.nist.gov/vuln/detail/CVE-2026-49406), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-49406 · Whole record: https://cve.day/CVE-2026-49406.json · Rebuilt by cve.day 2026-11-25T22:59:25.498Z
