GHSA-rp28-29ch-gh92

Suggest an improvement
Source
https://github.com/advisories/GHSA-rp28-29ch-gh92
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/08/GHSA-rp28-29ch-gh92/GHSA-rp28-29ch-gh92.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rp28-29ch-gh92
Aliases
  • CVE-2017-16222
Published
2018-08-06T21:30:15Z
Modified
2023-11-08T03:59:12.322391Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
Directory Traversal in elding
Details

Affected versions of elding resolve relative file paths, resulting in a directory traversal vulnerability. A malicious actor can use this vulnerability to access files outside of the intended directory root, which may result in the disclosure of private files on the vulnerable system.

This vulnerability only affects files that have file extensions - i.e. /etc/passwd will be treated as a directory, and a read attempt on /etc/passwd/index.js will be made and subsequently fail.

Example request:

GET /../../../../../../../../../../some_app_dir/secrets.json HTTP/1.1
host:foo

Recommendation

No patch is available for this vulnerability.

It is recommended that the package is only used for local development, and if the functionality is needed for production, a different package is used instead.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:55:14Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

npm / elding

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/08/GHSA-rp28-29ch-gh92/GHSA-rp28-29ch-gh92.json"