VDB
Sign up
MEDIUM6.1

GHSA-7qcx-jmrc-h2rr

Cross-Site Scripting in keystone

Quick fix

GHSA-7qcx-jmrc-h2rr — keystone: upgrade to the fixed version with the command below.

npm install keystone@4.0.0

Details

Versions of `keystone` prior to 4.0.0 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize user input on the `Contact Us` page, allowing attackers to submit contact forms with malicious JavaScript in the message field. The output is not properly encoded leading an admin that opens new inquiry to execute the arbitrary JavaScript supplied in their browser.

## Recommendation

Update to version 4.0.0 or later.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/keystone
Introduced in: 0Fixed in: 4.0.0
Fixnpm install keystone@4.0.0

References