GHSA-v4x8-gw49-7hv4

Suggest an improvement
Source
https://github.com/advisories/GHSA-v4x8-gw49-7hv4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-v4x8-gw49-7hv4/GHSA-v4x8-gw49-7hv4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v4x8-gw49-7hv4
Published
2020-09-03T20:37:42Z
Modified
2020-08-31T18:49:54Z
Summary
Path Traversal in swagger-injector
Details

All versions of swagger-injector are vulnerable to Path Traversal. The package fails to sanitize URLs, allowing attackers to access server files outside of the configured dist folder using relative paths.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Database specific
{
    "cwe_ids":  [
        "CWE-22"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T18:49:54Z",
    "nvd_published_at":  null,
    "severity":  "CRITICAL"
}
References

Affected packages

npm / swagger-injector

Package

Name
swagger-injector
View open source insights on deps.dev
Purl
pkg:npm/swagger-injector

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-v4x8-gw49-7hv4/GHSA-v4x8-gw49-7hv4.json"