# CVE-2020-22403: express-cart Cross-Site Request Forgery in admin

Source: https://junglewise.ai/threats/cve-2020-22403-express-cart-cross-site-request-forgery-in-admin  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-08-30. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2020-22403 · Severity: low · CVSS 3.1 · Published 2021-08-30

express-cart is a Node.js e-commerce shopping cart application. The vulnerability allows unauthenticated attackers to perform unauthorized administrative actions (such as creating discount codes) by tricking a logged-in admin into visiting a malicious website. An attacker can modify store settings, create fake discounts, or alter product data without the admin's knowledge.

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

## Quick answers

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

**How severe is CVE-2020-22403?** Low severity, with a CVSS score of 3.1, published 30 August 2021.

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

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

**How is CVE-2020-22403 attacked?** It is attacked over the network.

**Am I affected by CVE-2020-22403?** 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.17 or later

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


## Technical details

The vulnerability is a Cross-Site Request Forgery (CSRF) vulnerability in express-cart versions up to 1.1.10. The root cause is that the admin API endpoints only validate session cookies without implementing CSRF tokens, allowing an attacker to craft a malicious HTML form that, when visited by an authenticated admin, performs unwanted state-changing actions. The attack vector is network-based and requires user interaction (the admin must visit the attacker's page while logged into express-cart). An attacker can exploit this to create discount codes, modify settings, or perform other admin-level operations. The vulnerability was fixed in version 1.1.17.

## Affected products

- express-cart express-cart through 1.1.10

## Identifiers

- CVE-2020-22403
- GHSA-h5q8-5697-9p9h

## Timeline

- 2020-02-22: disclosed
- 2021-08-30: advisory
- 2021: patched: Fixed in version 1.1.17

## References

- [https://github.com/mrvautin/expressCart/issues/120](https://github.com/mrvautin/expressCart/issues/120)

## 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 unrestricted file upload vulnerability](https://junglewise.ai/threats/cve-2018-3758-express-cart-unrestricted-file-upload-vulnerability)
- [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)
