diagram-js-direct-editing@0.22.0 vulnerabilities

Direct editing support for diagram-js

Direct Vulnerabilities

Known vulnerabilities in the diagram-js-direct-editing 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-direct-editing is a direct editing box for diagram-js.

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-direct-editing to version 1.4.3 or higher.

<1.4.3