CVE-2021-41641 — Link Following in deno — CVE Details
Link Following in Deno
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.39%). Schedule for your next planned update.
Does your project use an affected Deno version?
Paste your Cargo.lock to check it for CVE-2021-41641 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
Deno <=1.14.0 file sandbox does not handle symbolic links correctly. When running Deno with specific write access, the Deno.symlink method can be used to gain access to any directory.
Advisory Timeline
- First published June 13, 2022 (1627 days ago).
- Last revised November 8, 2023 — 513 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p deno --precise 1.16.0
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.16.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-59
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
References
Frequently Asked Questions
- What is CVE-2021-41641?
- Link Following in Deno. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
- How do I check if my project is affected by CVE-2021-41641?
- CVE-2021-41641 affects deno. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-41641 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 24.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2025-21620HIGH
fetch: Authorization headers not dropped when redirecting cross-origin
- 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-2026-49411MEDIUM
Deno: Node TCPWrap numeric hostname aliases bypass --deny-net resolved-IP deny checks