Path traversal in node-tmp - CVE-2026-49982
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to create files or directories outside the intended temporary directory with the application's filesystem privileges.
The vulnerability exists due to missing type validation in node-tmp's path checks when applications forward untrusted non-string prefix, postfix, or template options unchanged. An unauthenticated remote attacker can submit arrays containing traversal sequences that bypass validation and become relative paths during string conversion.