{ "schema_version": "1.4.0", "id": "GHSA-rp28-29ch-gh92", "modified": "2023-09-08T23:13:40Z", "published": "2018-08-06T21:30:15Z", "aliases": [ "CVE-2017-16222" ], "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.\n\nThis 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. \n\n**Example request:**\n```http\nGET /../../../../../../../../../../some_app_dir/secrets.json HTTP/1.1\nhost:foo\n```\n\n\n## Recommendation\n\nNo patch is available for this vulnerability.\n\nIt 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.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "elding" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "last_affected": "1.0.0" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16222" }, { "type": "WEB", "url": "https://github.com/JacksonGL/NPM-Vuln-PoC/blob/master/directory-traversal/elding" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-rp28-29ch-gh92" }, { "type": "WEB", "url": "https://www.npmjs.com/advisories/415" } ], "database_specific": { "cwe_ids": [ "CWE-22" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2020-06-16T21:55:14Z", "nvd_published_at": null } }