Path traversal in Deno - CVE-2024-27931
Published: March 5, 2024 / Updated: April 23, 2026
Deno
Deno Land
Description
The vulnerability allows a remote attacker to overwrite important files on the system.
The vulnerability exists due to improper input validation in Deno.makeTemp* APIs when processing user-supplied prefix or suffix parameters. A remote attacker can supply path traversal characters in a prefix or suffix value to overwrite important files on the system.
The permission check applies to the base directory, but the created file may be placed outside that directory.