{"cve":"CVE-2026-49406","nvd":{"published":"2026-06-23T18:18:03.310","modified":"2026-10-25T23:10:00.167","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5},"cwes":["CWE-22"],"references":["https://github.com/denoland/deno/security/advisories/GHSA-968w-xfqw-vp9q","https://github.com/denoland/deno/security/advisories/GHSA-968w-xfqw-vp9q"],"products":["deno:deno"],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-49406","score":0.00176,"percentile":0.07026,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-968w-xfqw-vp9q","url":"https://osv.dev/vulnerability/GHSA-968w-xfqw-vp9q","summary":"Deno: BYONM module resolution allows `package.json` main path traversal to bypass `--allow-read` restrictions","modified":"2026-07-20T14:00:25.595481475Z","packages":[{"ecosystem":"crates.io","name":"deno","purl":"pkg:cargo/deno","ranges":["<2.7.12"],"fixed":["2.7.12"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}