GHSA-8fw4-xh83-3j6q
MEDIUMCross-Site Scripting in diagram-js
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.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | diagram-js | < 2.6.2 | 2.6.2 |
| OSV | npm | diagram-js | >= 3.0.0, < 3.3.1 | 3.3.1 |
References
- https://github.com/bpmn-io/diagram-js/commit/2565c40449379284a55163f290ec812db34244d1 · WEB
- https://github.com/bpmn-io/diagram-js/commit/777fa06d70036daa9d02f3be6d0732cf4ccd8d6d · WEB
- https://bpmn.io/blog/posts/2019-html-injection-vulnerabilities-fixed.html · WEB
- https://github.com/bpmn-io/diagram-js · PACKAGE
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Sep 2020)