Skip to content

Cross-Site Scripting in diagram-js

Moderate severity GitHub Reviewed Published Sep 11, 2020 to the GitHub Advisory Database • Updated Oct 3, 2023

Package

npm diagram-js (npm)

Affected versions

< 2.6.2
>= 3.0.0, < 3.3.1

Patched versions

2.6.2
3.3.1

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

If you are using diagram-js 3.x, upgrade to version 3.3.1.
If you are using diagram-js 2.x, upgrade to version 2.6.2.

References

Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 11, 2020
Last updated Oct 3, 2023

Severity

Moderate

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-8fw4-xh83-3j6q

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.