CVE-2020-15138

Cross-Site Scripting in Prism

HIGH
7.5
CVSS Score
Published: August 7, 2020 at 04:30 PM UTC
Updated: June 17, 2026 at 02:56 AM UTC
2 products affected across 1 vendorPreviewersPrism· also runs on 2 platforms

Using prism by PrismJS?

Get instant alerts when new vulnerabilities affect prism - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

1.1.0 ≤ v < 1.21.0
Affected range stops below 1.21.0, so it looks safe — our inference, not a vendor statement
apple-safari (environment) · microsoft-internet-explorer (environment)
v < 1.21.0
Affected range stops below 1.21.0, so it looks safe — our inference, not a vendor statement

Runs on — not affected

The affected product only carries this flaw when running on these platforms. The platforms themselves are not vulnerable.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card