{"id":"GHSA-7cv6-gvx3-m54m","summary":"Cross-Site Scripting in keystone","details":"Versions of `keystone` prior to 4.0.0 are vulnerable to Cross-Site Scripting (XSS). The package fails to properly encode rendered HTML on admin-created blog posts. This allows attackers to execute arbitrary JavaScript in the victim's browser. Exploiting this vulnerability requires having access to an admin account.\n\n\n## Recommendation\n\nUpdate to version 4.0.0 or later.","aliases":["CVE-2017-15881"],"modified":"2023-11-08T03:58:58.974306Z","published":"2017-11-16T01:47:02Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-06-16T21:22:30Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-15881"},{"type":"WEB","url":"https://github.com/keystonejs/keystone/issues/4437"},{"type":"WEB","url":"https://github.com/keystonejs/keystone/pull/4478"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7cv6-gvx3-m54m"},{"type":"WEB","url":"https://securelayer7.net/download/pdf/KeystoneJS-Pentest-Report-SecureLayer7.pdf"},{"type":"WEB","url":"https://www.npmjs.com/advisories/981"},{"type":"WEB","url":"http://blog.securelayer7.net/keystonejs-open-source-penetration-testing-report"},{"type":"WEB","url":"http://www.securityfocus.com/bid/101541"}],"affected":[{"package":{"name":"keystone","ecosystem":"npm","purl":"pkg:npm/keystone"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.0.0-beta7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/11/GHSA-7cv6-gvx3-m54m/GHSA-7cv6-gvx3-m54m.json","last_known_affected_version_range":"\u003c= 4.0.0-beta6"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"}]}