CVE-2021-41641 Link Following in Deno

High 8.4 Published Updated

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.

PackageAffectedFixed in
deno crates.ioAll versions1.16.0
deno crates.ioAll versions1.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.

Sources

Also known as GHSA-67hm-27mx-9cg7, JLSEC-2026-99.

Is CVE-2021-41641 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free