# CVE-2018-1000160: Cross-Site Scripting in @risingstack/protect

- Severity: Medium 6.1 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.28%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2018-04-18T19:00:00.000Z
- Modified: 2026-06-17T01:32:33.647Z
- Also known as: GHSA-vpch-rxw3-fgx8
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- @risingstack/protect (npm): up to 1.2.0
- risingstack protect: up to 1.2.0

## Every score

- GitHub: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.0 6.1 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/RisingStack/protect/issues/16> (exploit, third-party-advisory, web)
- <https://github.com/RisingStack/protect/blob/60b0c91e86686d34e5202419ce9ae7e8dc08edcd/lib/rules/xss.js#L4-L13> (patch, third-party-advisory, web)
- <http://embed.plnkr.co/xHbhB29JWWyMUMeHsLrm> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-1000160> (advisory)
- <https://github.com/RisingStack/protect> (package)
- <https://github.com/advisories/GHSA-vpch-rxw3-fgx8> (advisory)
- <https://snyk.io/vuln/SNYK-JS-RISINGSTACKPROTECT-455402> (web)
- <https://www.npmjs.com/advisories/1116> (web)

## Sources

- CVE List: [CVE-2018-1000160](https://www.cve.org/CVERecord?id=CVE-2018-1000160), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-vpch-rxw3-fgx8](https://github.com/advisories/GHSA-vpch-rxw3-fgx8), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2018-1000160](https://nvd.nist.gov/vuln/detail/CVE-2018-1000160), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1000160 · Whole record: https://cve.day/CVE-2018-1000160.json · Rebuilt by cve.day 2026-11-25T22:57:37.282Z
