GHSA-g8m7-qhv7-9h5x

Suggest an improvement
Source
https://github.com/advisories/GHSA-g8m7-qhv7-9h5x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-g8m7-qhv7-9h5x/GHSA-g8m7-qhv7-9h5x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g8m7-qhv7-9h5x
Published
2019-07-05T21:07:14Z
Modified
2021-09-22T18:35:22Z
Summary
Path Traversal in serve-here.js
Details

Versions of serve-here.js prior to 1.2.0 are vulnerable to Path Traversal. The package fails to sanitize URLs, allowing attackers to access server files outside of the served folder using relative paths.

Recommendation

Upgrade to version 1.2.0 or later.

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2019-06-14T16:17:51Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / serve-here

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
3.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-g8m7-qhv7-9h5x/GHSA-g8m7-qhv7-9h5x.json"