CVE-2021-32619 — Vulnerability in deno — CVE Details
Deno's static imports inside dynamically imported modules do not adhere to permission checks
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.11%). Schedule for your next planned update.
Does your project use an affected Deno version?
Paste your Cargo.lock to check it for CVE-2021-32619 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Modules that are dynamically imported through import() or new Worker might have been able to bypass network and file system permission checks when statically importing other modules. In Deno 1.5.x and 1.6.x only programs dynamically importing (especially transitively) untrusted code are affected. In Deno 1.7.x all programs importing (especially transitively) untrusted code are affected.
In effect an attacker in control of a (possibly remote) module in a programs module graph has been able to, irrespective of permissions:
- initiate GET requests to arbitrary URLs on the internet (including LAN) and possibly read (parts of) the contents of these resources.
- check for existence of arbitrary paths on the file system, and possibly read (parts of) the contents of these files.
In Deno 1.5.x (October 27th, 2020) and Deno 1.6.x (December 8th, 2020) the attacker module had to have been granted permissions to load dynamically through the network / fs read permission. Since Deno 1.7.x (January 19th, 2021) this vulnerability was able to be exploited in a fully sandboxed isolate (without any permissions). This vulnerability was not present in releases prior to 1.5.0.
Arbitrary non-GET requests, control over request headers, or file system writes are not possible through this vulnerability. Users of the deno_core, deno_runtime, or other deno_* crates are not affected. This is a Deno CLI only vulnerability.
We are relatively confident this was not abused in the wild, as by default Deno prints out a green "Download" message when remote imports are downloaded, and this would have caused suspicion if it occurred in the middle of a programs execution. This message can be silenced with the --quiet flag.
Patches
The vulnerability has been patched in Deno release 1.10.2. You can upgrade to the latest Deno version by running the deno upgrade command. The release is available through all official download channels.
Workarounds
There is no workaround for this issue.
For more information
If you have any questions or comments about this advisory:
- Open an issue on the issue tracker
- Discuss on Discord
Advisory Timeline
- First published September 23, 2021 (1890 days ago).
- Last revised July 8, 2026 — 1748 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p deno --precise 1.10.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| deno crates.io · Affected: All versions | 1.10.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2021-32619?
- Deno's static imports inside dynamically imported modules do not adhere to permission checks. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2021-32619?
- CVE-2021-32619 affects deno. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-32619 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 65.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-27190HIGH
Deno has a Command Injection via Incomplete shell metacharacter blocklist in node:child_process
- CVE-2025-61787HIGH
Deno is Vulnerable to Command Injection on Windows During Batch File Execution
- CVE-2026-22864HIGH
Deno has an incomplete fix for command-injection prevention on Windows — case-insensitive extension bypass
- CVE-2024-27936HIGH
Deno's deno_runtime vulnerable to interactive permission prompt spoofing via improper ANSI stripping
- CVE-2023-22499HIGH
Deno is vulnerable to race condition via interactive permission prompt spoofing
- CVE-2023-33966HIGH
Missing "--allow-net" permission check for built-in Node modules
- CVE-2023-28446HIGH
Interactive `run` permission prompt spoofing via improper ANSI neutralization
- CVE-2026-49411MEDIUM
Deno: Node TCPWrap numeric hostname aliases bypass --deny-net resolved-IP deny checks