Directory Traversal in send
Low severity
GitHub Reviewed
Published
Oct 24, 2017
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Published to the GitHub Advisory Database
Oct 24, 2017
Reviewed
Jun 16, 2020
Last updated
Jan 9, 2023
Versions 0.8.3 and earlier of
send
are affected by a directory traversal vulnerability. When relying on the root option to restrict file access it may be possible for an application consumer to escape out of the restricted directory and access files in a similarly named directory.For example,
static(_dirname + '/public')
would allow access to_dirname + '/public-restricted'
.Recommendation
Update to version 0.8.4 or later.
References