# CVE-2018-3758: express-cart unrestricted file upload vulnerability

Source: https://junglewise.ai/threats/cve-2018-3758-express-cart-unrestricted-file-upload-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-13. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2018-3758 · Severity: low · CVSS 3 · Published 2022-05-13

express-cart is a popular Node.js e-commerce shopping cart module used by online retailers. An attacker with privileged user access (such as a compromised admin account) can upload arbitrary files to the hosting machine, potentially achieving remote code execution and taking complete control of the server infrastructure.

Technologies: [express-cart (npm)](https://junglewise.ai/threats/technologies/express-cart). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2018-3758 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2018-3758 being exploited in the wild.

**How severe is CVE-2018-3758?** Low severity, with a CVSS score of 3, published 13 May 2022.

**Which products and versions are affected?** express-cart (npm) SEMVER:introduced=0,fixed=1.1.7.

**Is there a fix for CVE-2018-3758?** Yes. express-cart (npm): upgrade to 1.1.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2018-3758 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2018-3758?** Check whether you run express-cart (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- express-cart (npm): upgrade to 1.1.7 or later

  ```sh
  npm install express-cart@1.1.7
  ```


## Technical details

This is an unrestricted file upload vulnerability (CWE-434) in express-cart versions before 1.1.7. The file upload functionality lacks proper validation or restrictions on file types and content, allowing an authenticated user with administrative privileges to upload and execute arbitrary files on the server. The attack requires prior authentication with elevated privileges, but once exploited, an attacker gains remote code execution on the hosting machine. The vulnerability was fixed in version 1.1.7 with added limitations to file uploads as shown in the commit adding validation controls to the admin file upload routes.

## Affected products

- mrvautin express-cart before 1.1.7

## Identifiers

- CVE-2018-3758
- GHSA-4w62-cq5r-5mmq

## Timeline

- 2018-06-07: disclosed: Published on NVD
- 2022-05-13: patched: Advisory published; fix available in version 1.1.7

## References

- [https://github.com/mrvautin/expressCart/commit/65b18cfe426fa217aa6ada1d4162891883137893](https://github.com/mrvautin/expressCart/commit/65b18cfe426fa217aa6ada1d4162891883137893)
- [https://hackerone.com/reports/343726](https://hackerone.com/reports/343726)

## Related threats

- [express-cart admin user creation auth bypass](https://junglewise.ai/threats/cve-2018-12457-express-cart-admin-user-creation-auth-bypass)
- [express-cart Cross-Site Request Forgery in admin](https://junglewise.ai/threats/cve-2020-22403-express-cart-cross-site-request-forgery-in-admin)
- [express-cart cross-site scripting in admin](https://junglewise.ai/threats/express-cart-cross-site-scripting-in-admin-364784a1)
- [express-cart NoSQL injection in login](https://junglewise.ai/threats/express-cart-nosql-injection-in-login-f1d83a16)
- [express-cart path traversal vulnerability](https://junglewise.ai/threats/express-cart-path-traversal-vulnerability-0acf6117)
