{"id":"GHSA-vpch-rxw3-fgx8","summary":"Cross-Site Scripting in @risingstack/protect","details":"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.","aliases":["CVE-2018-1000160"],"modified":"2023-11-08T03:59:36.258972Z","published":"2018-04-25T14:30:43Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:58:00Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000160"},{"type":"WEB","url":"https://github.com/RisingStack/protect/issues/16"},{"type":"PACKAGE","url":"https://github.com/RisingStack/protect"},{"type":"WEB","url":"https://github.com/RisingStack/protect/blob/60b0c91e86686d34e5202419ce9ae7e8dc08edcd/lib/rules/xss.js#L4-L13"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-vpch-rxw3-fgx8"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-RISINGSTACKPROTECT-455402"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1116"},{"type":"WEB","url":"http://embed.plnkr.co/xHbhB29JWWyMUMeHsLrm"}],"affected":[{"package":{"name":"@risingstack/protect","ecosystem":"npm","purl":"pkg:npm/%40risingstack/protect"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.2.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/04/GHSA-vpch-rxw3-fgx8/GHSA-vpch-rxw3-fgx8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}