{"id":"CVE-2018-1000160","aliases":["CVE-2018-1000160","GHSA-vpch-rxw3-fgx8"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in @risingstack/protect","summary":"RisingStack protect version 1.2.0 and earlier contains a Cross Site Scripting (XSS) vulnerability in isXss() function in lib/rules/xss.js that can result in dangerous XSS strings being validated as safe. This attack appears to be exploitable via A number of XSS strings(26) detailed in the GitHub issue #16.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"RisingStack protect version 1.2.0 and earlier contains a Cross Site Scripting (XSS) vulnerability in isXss() function in lib/rules/xss.js that can result in dangerous XSS strings being validated as safe. This attack appears to be exploitable via A number of XSS strings(26) detailed in the GitHub issue #16.","source":"cvelist"},{"lang":"en","text":"All versions of `@risingstack/protect` are vulnerable to Cross-Site Scripting. The  `isXss()` XSS validator has several bypasses that may allow attackers to execute arbitrary JavaScript in a victim's browser.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package. The package is not actively maintained and will not be patched.","format":"markdown","source":"ghsa"},{"lang":"es","text":"RisingStack protect, en su versión 1.2.0 y anteriores, contiene una vulnerabilidad de Cross Site Scripting (XSS) en la función isXss() en lib/rules/xss.js que puede resultar en que las cadenas XSS peligrosas se validan como seguras. Este ataque parece ser explotable mediante una serie de cadenas XSS (26), detalladas en la publicación número 16 de GitHub.","source":"nvd"}],"published":"2018-04-18T19:00:00.000Z","modified":"2026-06-17T01:32:33.647Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.2.0"}],"ecosystem":"npm","package":"@risingstack/protect","purl":"pkg:npm/%40risingstack/protect","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.2.0"}],"vendor":"risingstack","product":"protect","cpe":"cpe:2.3:a:risingstack:protect:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/RisingStack/protect/blob/60b0c91e86686d34e5202419ce9ae7e8dc08edcd/lib/rules/xss.js#L4-L13","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://embed.plnkr.co/xHbhB29JWWyMUMeHsLrm","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/RisingStack/protect/issues/16","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000160","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/RisingStack/protect","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-vpch-rxw3-fgx8","tags":["advisory"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-RISINGSTACKPROTECT-455402","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1116","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-1000160","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000160","licence":"CVE Terms of Use","modified":"2024-08-05T12:33:49.402Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vpch-rxw3-fgx8","url":"https://github.com/advisories/GHSA-vpch-rxw3-fgx8","licence":"CC-BY-4.0","modified":"2023-11-08T03:59:36.258Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-1000160","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000160","licence":"Public domain","modified":"2026-06-17T01:32:33.647Z"}],"updatedAt":"2026-11-25T22:57:37.282Z","epss":{"score":0.01282,"percentile":0.70907,"date":"2026-12-01T12:00:22.000Z"}}