CVE-2020-15138
HIGH 7.5CVSS 3.1Cross-Site Scripting in Prism
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.
- Published
- 7 Aug 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-wvhm-4hhf-97x9
- Sources
- NVDJSONOSV GHSA-wvhm-4hhf-97x9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:L |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.6 | AV:N/AC:H/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | prismjs | previewerscpe:2.3:a:prismjs:previewers:*:*:*:*:*:prismjs:*:* |
>= 1.1.0, < 1.21.0 | 1.21.0 |
| OSV | npm | prismjs | >= 1.1.0, < 1.21.0 | 1.21.0 |
References
- https://github.com/PrismJS/prism/pull/2506/commits/7bd7de05edf71112a3a77f87901a2409c9c5c20c · Patch, Third Party Advisory, WEB
- 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://nvd.nist.gov/vuln/detail/CVE-2020-15138 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 7 Aug 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Aug 2020)