CVE-2021-41641 Link Following in Deno
Attackers can bypass file sandbox restrictions via symbolic links to access or modify arbitrary directories when specific write permissions are granted.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-41641?
CVE-2021-41641 is a high-severity path traversal vulnerability in n/a, published on 12 Jun 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-59
Which versions are affected by CVE-2021-41641?
2 open source packages ship an affected version, including deno. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
deno crates.io | All versions | 1.16.0 |
deno crates.io | All versions | 1.16.0 |
Products include Deno Deno.
How do I fix CVE-2021-41641?
Upgrade deno to 1.16.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-41641 being exploited?
There is no known exploitation of CVE-2021-41641 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2023-28445 Deno improperly handles resizable ArrayBuffer
- CVE-2022-24783 Sandbox bypass leading to arbitrary code execution in Deno
- CVE-2021-32619 Static imports inside dynamically imported modules do not adhere to permission checks
- CVE-2026-22863 Deno node:crypto doesn't finalize cipher
- CVE-2024-27936 Deno interactive permission prompt spoofing via improper ANSI stripping
Sources
Also known as GHSA-67hm-27mx-9cg7, JLSEC-2026-99.