Skip to content

CVE-2020-15138 Cross-Site Scripting in Prism

HighCVSS 7.5 EPSS 2.0%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

7 packages: 5 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/node-prismjs(Ubuntu 20.04) = 1.11.0+dfsg-2; = 1.11.0+dfsg-3; All versions No fix listed No fix yet
debian/node-prismjs(Debian 12) < 1.11.0+dfsg-4 1.11.0+dfsg-4 Fixed
debian/node-prismjs(Debian 13) < 1.11.0+dfsg-4 1.11.0+dfsg-4 Fixed
debian/node-prismjs(Debian 14) < 1.11.0+dfsg-4 1.11.0+dfsg-4 Fixed
npm prismjs(npm) >= 1.1.0, < 1.21.0 1.21.0 Fixed
PrismJS previewers >= 1.1.0, < 1.21.0 1.21.0 Fixed
PrismJS prism = >= 1.1.0, < 1.21.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm prismjs(npm) >= 1.1.0, < 1.21.0 1.21.0
debian/node-prismjs(Debian:12) < 1.11.0+dfsg-4 1.11.0+dfsg-4
debian/node-prismjs(Debian:14) < 1.11.0+dfsg-4 1.11.0+dfsg-4
debian/node-prismjs(Debian:13) < 1.11.0+dfsg-4 1.11.0+dfsg-4
PrismJS previewers >= 1.1.0, < 1.21.0 1.21.0
PrismJS prism = >= 1.1.0, < 1.21.0 No fix listed
ubuntu/node-prismjs(Ubuntu:20.04) All versions No fix listed
ubuntu/node-prismjs(Ubuntu:20.04) = 1.11.0+dfsg-2 No fix listed
ubuntu/node-prismjs(Ubuntu:20.04) = 1.11.0+dfsg-3 No fix listed

References