GHSA-gc94-6w89-hpqr Command Injection in fs-path
Attackers can execute arbitrary commands via unsanitized input in the fs-path library, requiring immediate removal of the module.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-gc94-6w89-hpqr?
GHSA-gc94-6w89-hpqr is a command injection vulnerability in fs-path, published on 12 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of fs-path are vulnerable to command injection is unsanitized user input is passed in.
Recommendation
No fix is currently available for this vulnerability. It is our recommendation to not install or use this module until a fix is available.
Which versions are affected by GHSA-gc94-6w89-hpqr?
2 open source packages ship an affected version, including fs-path.
| Package | Affected | Fixed in |
|---|---|---|
fs-path npm | All versions | 0.0.25 |
fs-path npm | All versions | 0.0.25 |
How do I fix GHSA-gc94-6w89-hpqr?
Upgrade fs-path to 0.0.25 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is GHSA-gc94-6w89-hpqr being exploited?
There is no known exploitation of GHSA-gc94-6w89-hpqr in the wild and no public exploit code.