Advisory

GHSA-8fw4-xh83-3j6q

Also known as: None

Summary

Cross-Site Scripting in diagram-js

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-09-11 21:18 UTC
Modified
2021-09-28 16:58 UTC

Affected packages and fixes

diagram-js

npm · All systems

Affected

  • introduced 0, fixed 2.6.2 (semver)

Fixed versions

2.6.2

Fix

diagram-js

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.3.1 (semver)

Fixed versions

3.3.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences