# Keystone cross-site scripting

Source: https://junglewise.ai/threats/keystone-cross-site-scripting-9990301e  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-08-20. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

Severity: info · Published 2020-08-20

Keystone is a Node.js-based CMS and application framework. A cross-site scripting (XSS) vulnerability in Keystone allows attackers to inject malicious scripts into web pages viewed by other users, potentially enabling account takeover, credential theft, or defacement of content.

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

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 20 August 2020.

**Which products and versions are affected?** keystone (npm) SEMVER:introduced=0,fixed=4.0.0.

**Is there a fix for This vulnerability?** Yes. keystone (npm): upgrade to 4.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network.

**Am I affected?** Check whether you run keystone (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

- keystone (npm): upgrade to 4.0.0 or later

  ```sh
  npm install keystone@4.0.0
  ```


## Technical details

Keystone contains a cross-site scripting vulnerability that was withdrawn as a duplicate of GHSA-7qcx-jmrc-h2rr. The vulnerability affects all versions before 4.0.0. The specific root cause and vulnerable component details are not disclosed in this advisory, but the fix was made available in version 4.0.0. Attack vectors and prerequisites for exploitation are not specified in the available advisory information.

## Affected products

- Keystone Keystone before 4.0.0

## Timeline

- 2020-08-20: disclosed
- 2020-08-20: patched: Advisory withdrawn as duplicate; fix available in version 4.0.0

## References

- [https://github.com/keystonejs/keystone/pull/4478](https://github.com/keystonejs/keystone/pull/4478)
- [https://github.com/keystonejs/keystone/commit/8ecb80960ffd2ae2f241b0bbb62367821a79ff63](https://github.com/keystonejs/keystone/commit/8ecb80960ffd2ae2f241b0bbb62367821a79ff63)

## Related threats

- [KeystoneJS keystone authentication weakness in email matching](https://junglewise.ai/threats/keystonejs-keystone-authentication-weakness-in-email-matching-6ecf46db)
- [Keystone Cross-Site Request Forgery (CSRF)](https://junglewise.ai/threats/cve-2017-16570-keystone-cross-site-request-forgery-csrf)
- [KeystoneJS cross-site scripting in blog posts](https://junglewise.ai/threats/cve-2017-15881-keystonejs-cross-site-scripting-in-blog-posts)
- [KeystoneJS CSV injection in export](https://junglewise.ai/threats/cve-2017-15879-keystonejs-csv-injection-in-export)
- [KeystoneJS Cross-Site Scripting in contact form](https://junglewise.ai/threats/cve-2017-15878-keystonejs-cross-site-scripting-in-contact-form)
