CVE-2019-13127
mxGraph vulnerable to cross-site scripting in color field
Description
mxGraph through 4.0.0, related to the draw.io Diagrams plugin before 8.3.14 for Confluence and other products, is vulnerable to cross-site scripting. draw.io Diagrams allows the creation and editing of draw.io-based diagrams in Confluence. Among other things, it allows to set the background color of text displayed in the diagram. The color provided by the user is notproperly sanitized, leading to HTML and JavaScript code to be displayed "as it is" to visitors of the page. This allows attackers to execute JavaScript code in the context of the visitor's browser and session and to e.g. run Confluence command under the visitor's user or attack the visitor's browser.
Proof of Concept (PoC):
- Create a new draw.io Diagram, add an element and edit its background color and enter some text to the element
- Enter the following "color":
onMouseOver=alert(1) a= - Save and view the resulting diagram, moving your mouse over the text
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.webjars.npm » mxgraphvia npm mxgraph | < 4.0.1 | 4.0.1 |
Blast radius
11% of the dependent artifacts (3) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 39 |
| 2 hops | 717 |
| 3 hops | 156 |
Most used dependents
- org.eclipse.dirigible » dirigible-resources28 usages
- org.eclipse.dirigible » dirigible-sap-kyma-base6 usages
- org.eclipse.dirigible » dirigible-server-keycloak-all5 usages
- org.eclipse.dirigible » dirigible-sap-cf-base4 usages
- org.eclipse.dirigible » dirigible-server-all4 usages
- org.eclipse.dirigible » dirigible-anonymous-all0 usages
- org.eclipse.dirigible » dirigible-anonymous-runtime0 usages
- org.eclipse.dirigible » dirigible-desktop-all0 usages
- org.eclipse.dirigible » dirigible-openshift-all0 usages
- org.eclipse.dirigible » dirigible-sap-all0 usages
- org.eclipse.dirigible » dirigible-sap-all-ephemeral0 usages
- org.eclipse.dirigible » dirigible-sap-cf-all0 usages
- org.eclipse.dirigible » dirigible-sap-cf-runtime0 usages
- org.eclipse.dirigible » dirigible-sap-kyma-all0 usages
- org.eclipse.dirigible » dirigible-sap-kyma-runtime0 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2019-13127 | nvd.nist.gov |
| Web | jgraph/mxgraph commit 76e8e28 | github.com |
| Web | apps/1210933/draw-io-diagrams-for-confluence/version-history | marketplace.atlassian.com |
| Web | fileadmin/dokumente/Publikationen/Advisories/SYSS-2019-032.txt | syss.de |
