# GHSA-cff4-rrq6-h78w: Command Injection in command-exists

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-06-03T17:31:26.000Z
- Modified: 2020-08-31T18:31:41.000Z
- Weaknesses: CWE-77

## Description

Versions of `command-exists` before 1.2.4 are vulnerable to command injection. This is exploitable if user input is provided to this module.


## Recommendation

Update to version 1.2.4 or later.

(As written by GitHub Advisory Database.)

## Affected

- command-exists (npm): before 1.2.4

## References

- <https://github.com/mathisonian/command-exists/commit/7ca91ba71604df6817a28c93d7776af9c49c431a> (web)
- <https://hackerone.com/reports/324453> (web)
- <https://github.com/mathisonian/command-exists/blob/v1.2.2/lib/command-exists.js#L49-L94> (web)
- <https://www.npmjs.com/advisories/659> (web)

## Sources

- GitHub Advisory Database: [GHSA-cff4-rrq6-h78w](https://github.com/advisories/GHSA-cff4-rrq6-h78w), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-cff4-rrq6-h78w · Whole record: https://cve.day/GHSA-cff4-rrq6-h78w.json · Rebuilt by cve.day 2026-11-25T22:56:45.080Z
