Cross-site Scripting (XSS) Affecting node-prismjs package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
2.04% (79th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-NODEPRISMJS-597599
  • published8 Aug 2020
  • disclosed7 Aug 2020

Introduced: 7 Aug 2020

CVE-2020-15138  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:20.04 node-prismjs.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-prismjs package and not the node-prismjs package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1