CVE-2019-13127: XSS

Published Jul 1, 2019
·
Updated

An issue was discovered in mxGraph through 4.0.0, related to the "draw.io Diagrams" plugin before 8.3.14 for Confluence and other products. Improper input validation/sanitization of a color field leads to XSS. This is associated with javascript/examples/grapheditor/www/js/Dialogs.js.

Other sources

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):

1. Create a new draw.io Diagram, add an element and edit its background color and enter some text to the element 2. Enter the following "color": onMouseOver=alert(1) a= 3. Save and view the resulting diagram, moving your mouse over the text

Affected Software

3 affected componentsFixes available
npm/mxgraph<=4.0.0
4.0.1
draw Draw.io Diagrams Confluence<8.3.14
jgraph mxGraph<=4.0.0

Event History

Jul 1, 2019
CVE Published
via MITRE·02:33 PM
Data Sourced
via MITRE·02:33 PM
Description
May 24, 2022
Advisory Published
04:49 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2019-13127?

CVE-2019-13127 has been classified as a moderate severity vulnerability due to its potential for Cross-Site Scripting (XSS).

2

How do I fix CVE-2019-13127?

To fix CVE-2019-13127, update mxGraph to version 4.0.1 or later, and the Draw.io Diagrams plugin to version 8.3.14 or later.

3

What impact does CVE-2019-13127 have on affected systems?

CVE-2019-13127 allows for Cross-Site Scripting (XSS), which can potentially lead to unauthorized actions or data exposure on affected systems.

4

Which versions are affected by CVE-2019-13127?

CVE-2019-13127 affects mxGraph versions up to 4.0.0 and the Draw.io Diagrams plugin versions prior to 8.3.14.

5

What components are involved in CVE-2019-13127?

CVE-2019-13127 involves the mxGraph library and the Draw.io Diagrams plugin for Confluence.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203