diagram-js@0.18.4 vulnerabilities

A toolbox for displaying and modifying diagrams on the web

Direct Vulnerabilities

Known vulnerabilities in the diagram-js package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

diagram-js is a framework for modifying diagrams in browser.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). Pasting HTML text anywhere that allows text input in the modeler evaluates the HTML as is. It can be exploited by adding a new element on the canvas and editing the name to contain html. For example, <video src=1 onerror=alert('Running a script')>

How to fix Cross-site Scripting (XSS)?

Upgrade diagram-js to version 2.6.2, 3.3.1 or higher.

<2.6.2 >=3.0.0 <3.3.1