Command Injection in ascii-art
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Code execution
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ascii-art (npm) | before 1.4.4 | 1.4.4 | Patch available | GHSA-9hqj-38j2-5jgm |
- ascii-art (npm) Vendor— Affected before 1.4.4 Fixed in 1.4.4 Patch available GHSA-9hqj-38j2-5jgm
Remediation
- Fix · GHSA-9hqj-38j2-5jgm ascii-art (npm) Fixed in 1.4.4 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-9hqj-38j2-5jgm
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences