CVE-2019-13127: mxGraph vulnerable to cross-site scripting in color field
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55491%
CWE
Published
5/24/2022
Updated
10/19/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mxgraph | npm | <= 4.0.0 | 4.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerability was in Dialogs.js
where color input validation was added. The pre-patch code (lines 204-215) directly used user-provided color values without proper sanitization, allowing injection of event handlers like onMouseOver
. The PoC demonstrates this by injecting JavaScript through the color field. The fix added regex validation for hex color formats, confirming the vulnerability existed in the color processing logic of this dialog handler.