Vulnerability library
Security checkOctober 03, 2023

Cross-Site Scripting in diagram-js

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmdiagram-js

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Versions of diagram-js prior to 3.3.1 (for 3.x) and 2.6.2 (for 2.x) are vulnerable to Cross-Site Scripting. The package fails to escape output of user-controlled input in search-pad, allowing attackers to execute arbitrary JavaScript.

Recommendation

Update the diagram-js package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 3.0.0, < 3.3.1 < 2.6.2**
  • Patched version(s): **3.3.1 2.6.2**

References

Could your website be exposed too?

SmartScanner can check your website for Cross-Site Scripting in diagram-js and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 03, 2023