# GHSA-9hqj-38j2-5jgm: Command Injection in ascii-art

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-01T21:19:23.000Z
- Modified: 2020-08-31T18:33:35.000Z
- Weaknesses: CWE-77

## Description

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. 


Example Proof of concept:
`ascii-art preview 'doom"; touch /tmp/malicious; echo "'`

Given 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`.


## Recommendation

Update to version 1.4.4 or later.

(As written by GitHub Advisory Database.)

## Affected

- ascii-art (npm): before 1.4.4

## References

- <https://hackerone.com/reports/390631> (web)
- <https://github.com/nodejs/security-wg/blob/master/vuln/npm/471.json> (web)
- <https://www.npmjs.com/advisories/727> (web)

## Sources

- GitHub Advisory Database: [GHSA-9hqj-38j2-5jgm](https://github.com/advisories/GHSA-9hqj-38j2-5jgm), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-9hqj-38j2-5jgm · Whole record: https://cve.day/GHSA-9hqj-38j2-5jgm.json · Rebuilt by cve.day 2026-11-25T22:56:44.925Z
