LowGHSA-xwg4-93c6-3h42CVE-2014-6394

Directory Traversal in send

Published 24 Oct 2017 · Updated 8 Nov 2023

Affected package

sendnpm
Affected
<0.8.4
Fixed in
0.8.4
Update to the fixed version for your release line, for example:npm install send@0.8.4

Details

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.

Is GHSA-xwg4-93c6-3h42 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected send, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.