Skip to content
OpenAdvisories
High · 7.1 CVE-2020-15138 EUVD-2020-0649GHSA-wvhm-4hhf-97x9

Cross-Site Scripting in Prism

Published Aug 7, 2020 · Updated Aug 4, 2024 · 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.

Affected products

VendorProductAffectedFixed
PrismJS prism >= 1.1.0, < 1.21.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-prismjs 1.11.0+dfsg-4 —
Debian 13 node-prismjs 1.11.0+dfsg-4 —
Debian 12 node-prismjs 1.11.0+dfsg-4 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-prismjs No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm prismjs >= 1.1.0, < 1.21.0 1.21.0 GHSA-wvhm-4hhf-97x9

Advisories 1

References