GitHub Advisoryadvisory · npm

GHSA-mxmj-84q8-34r7 Command Injection in expressfs

HIGH Published 2020-09-03 Modified 2020-08-31 Official page ↗
Ecosystem
npm
Packages
expressfs
Severity
High
Weaknesses
CWE-77
Reviewed
2020-08-31

Affected packages

• npm expressfs: all versions (no fix yet)

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.

Related

Weakness · CWE (1)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness

References