VDB
Sign up
LOW

GHSA-xwg4-93c6-3h42

Directory Traversal in send

Quick fix

GHSA-xwg4-93c6-3h42 — send: upgrade to the fixed version with the command below.

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/send
Introduced in: 0Fixed in: 0.8.4
Fixnpm install send@0.8.4

References