# CVE-2020-15138: Cross-Site Scripting in Prism

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- 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): 2.04%, higher than 82% of CVEs (2026-11-30)
- Published: 2020-08-07T16:30:14.000Z
- Modified: 2026-07-08T06:00:45.631Z
- Also known as: GHSA-wvhm-4hhf-97x9
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## Description

Prism is vulnerable to Cross-Site Scripting. The easing preview of the Previewers plugin has an XSS vulnerability that allows attackers to execute arbitrary code in Safari and Internet Explorer. This impacts all Safari and Internet Explorer users of Prism >=v1.1.0 that use the _Previewers_ plugin (>=v1.10.0) or the _Previewer: Easing_ plugin (v1.1.0 to v1.9.0). This problem is fixed in version 1.21.0. To workaround the issue without upgrading, disable the easing preview on all impacted code blocks. You need Prism v1.10.0 or newer to apply this workaround.

(As written by CVE List.)

## Affected

- PrismJS prism: >= 1.1.0, < 1.21.0
- prismjs (npm): from 1.1.0 before 1.21.0
- prismjs previewers: from 1.1.0 before 1.21.0

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:L`
- NVD: CVSS:2.0 2.6 Low `AV:N/AC:H/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/PrismJS/prism/security/advisories/GHSA-wvhm-4hhf-97x9> (third-party-advisory, web)
- <https://prismjs.com/plugins/previewers/#disabling-a-previewer> (vendor-advisory, web)
- <https://github.com/PrismJS/prism/pull/2506/commits/7bd7de05edf71112a3a77f87901a2409c9c5c20c> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15138> (advisory)

## Sources

- CVE List: [CVE-2020-15138](https://www.cve.org/CVERecord?id=CVE-2020-15138), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-wvhm-4hhf-97x9](https://github.com/advisories/GHSA-wvhm-4hhf-97x9), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15138](https://nvd.nist.gov/vuln/detail/CVE-2020-15138), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15138 · Whole record: https://cve.day/CVE-2020-15138.json · Rebuilt by cve.day 2026-11-25T22:57:53.868Z
