GHSA-mxmj-84q8-34r7 Command Injection in expressfs
Attackers can execute arbitrary system commands via unvalidated input in expressfs API endpoints, requiring immediate replacement of the library.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is GHSA-mxmj-84q8-34r7?
GHSA-mxmj-84q8-34r7 is a command injection vulnerability in expressfs, published on 3 Sep 2020. It can be exploited over the network, with no action from the victim.
Official description
All versions of expressfs are vulnerable to Command Injection. The package does not validate user input on several API endpoints, allowing attackers to run arbitrary commands in the system. The affected endpoints are: expressfs.appendFile, expressfs.cp, expressfs.create and expressfs.rmdir.
Recommendation
No fix is currently available. Consider using an alternative module until a fix is made available.
Which versions are affected by GHSA-mxmj-84q8-34r7?
2 open source packages ship an affected version, including expressfs.
| Package | Affected | Fixed in |
|---|---|---|
expressfs npm | All versions | None |
expressfs npm | All versions | None |
How do I fix GHSA-mxmj-84q8-34r7?
No fix has been published for GHSA-mxmj-84q8-34r7 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is GHSA-mxmj-84q8-34r7 being exploited?
There is no known exploitation of GHSA-mxmj-84q8-34r7 in the wild and no public exploit code.