GHSA-xwg4-93c6-3h42

Suggest an improvement
Source
https://github.com/advisories/GHSA-xwg4-93c6-3h42
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-xwg4-93c6-3h42/GHSA-xwg4-93c6-3h42.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xwg4-93c6-3h42
Aliases
Published
2017-10-24T18:33:36Z
Modified
2023-11-08T03:57:43Z
Summary
Directory Traversal in send
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.

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-06-16T22:04:41Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

npm / send

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.8.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-xwg4-93c6-3h42/GHSA-xwg4-93c6-3h42.json"