denoland · Deno · published 2026-06-23

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

This month Public proof-of-concept exists (SSVC exploitation: poc).

CVE-2026-49406 has a public proof-of-concept exploit, but no confirmed exploitation in the wild. EPSS estimates a 0.2% chance of exploitation in the next 30 days, higher than 7% of all CVEs. This Deno vulnerability: CVSS 5.5 (v3.1). Fixed upstream in Deno 2.8.1, 2.8.0, 2.7.14, 2.7.12 (+2 more). Patch in your normal monthly cycle.

Share this

Remediation#

Fixed upstream in Deno 2.8.1, 2.8.0, 2.7.14, 2.7.12, 2.7.10, 2.7.8.

Patch events

  1. This monthSecurity release

    Language runtimeDeno

    Deno security fixes: 9 CVEs

    Upgrade to 2.8.12.8.02.7.142.7.122.7.102.7.8

    Why: CVE-2026-49402: Public proof-of-concept exists (SSVC exploitation: poc).

Exploit intelligence#

SignalValueSource
Known exploitedNoCISA KEV
Ransomware use—CISA KEV
EPSS (30-day exploitation probability)0.2% (7th pct)FIRST EPSS v2026.06.15
CVSS base score5.5 (v3.1)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CNA / CISA ADP
SSVC exploitationpocCISA Vulnrichment
SSVC automatableNoCISA Vulnrichment
SSVC technical impactpartialCISA Vulnrichment

Affected versions (from the CVE record)#

Description (from the CVE record)#

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.

Quoted from the CVE Program record.

Elsewhere#

Distro status: Debian · Ubuntu · Red Hat · Alpine

Something wrong on this page?
Anonymous. Reports are checked against the primary source.

Also on today's list

See today's list → · Coming up →