{"id":"GHSA-9hqj-38j2-5jgm","summary":"Command Injection in ascii-art","details":"Versions of `ascii-art` before 1.4.4 are vulnerable to command injection. This is exploitable when user input is passed into the argument of the `ascii-art preview` command. \n\n\nExample Proof of concept:\n`ascii-art preview 'doom\"; touch /tmp/malicious; echo \"'`\n\nGiven that the input is passed on the command line and none of the api methods are vulnerable to this,  the likely exploitation vector is when the ascii-art comment is being called programmatically using something like `execFile`.\n\n\n## Recommendation\n\nUpdate to version 1.4.4 or later.","modified":"2020-08-31T18:33:35Z","published":"2020-09-01T21:19:23Z","database_specific":{"cwe_ids":["CWE-77"],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:33:35Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://hackerone.com/reports/390631"},{"type":"WEB","url":"https://github.com/nodejs/security-wg/blob/master/vuln/npm/471.json"},{"type":"WEB","url":"https://www.npmjs.com/advisories/727"}],"affected":[{"package":{"name":"ascii-art","ecosystem":"npm","purl":"pkg:npm/ascii-art"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.4"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.4.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-9hqj-38j2-5jgm/GHSA-9hqj-38j2-5jgm.json"}}],"schema_version":"1.9.0"}