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.0Details
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
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-15878[ADVISORY]
- https://github.com/keystonejs/keystone/pull/4478[WEB]
- https://github.com/advisories/GHSA-7qcx-jmrc-h2rr[ADVISORY]
- https://github.com/keystonejs/keystone[PACKAGE]
- https://packetstormsecurity.com/files/144756/KeystoneJS-4.0.0-beta.5-Unauthenticated-Stored-Cross-Site-Scripting.html[WEB]
- https://securelayer7.net/download/pdf/KeystoneJS-Pentest-Report-SecureLayer7.pdf[WEB]
- https://www.exploit-db.com/exploits/43054[WEB]
- https://www.npmjs.com/advisories/980[WEB]
- http://blog.securelayer7.net/keystonejs-open-source-penetration-testing-report[WEB]
- http://www.securityfocus.com/bid/101541[WEB]