Arbitrary Code Injection Affecting expressfs package, versions *


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-EXPRESSFS-455280
  • published24 Jul 2019
  • disclosed10 Jun 2019
  • creditMicrosoft Vulnerability Research

Introduced: 10 Jun 2019

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for expressfs.

Overview

expressfs is a package that adds fs routes to your express app like writeFile, readFile, et cetera.

Affected versions of this package are vulnerable to Arbitrary Code 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.

CVSS Base Scores

version 3.1