{"id":"CVE-2022-40440","aliases":["CVE-2022-40440","GHSA-j4rv-pr9g-q8jv"],"related":[],"kind":"vulnerability","state":"published","title":"mxGraph vulnerable to cross-site scripting in setTooltips function","summary":"mxGraph v4.2.2 was discovered to contain a cross-site scripting (XSS) vulnerability via the setTooltips() function.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"mxGraph v4.2.2 was discovered to contain a cross-site scripting (XSS) vulnerability via the setTooltips() function.","source":"cvelist"},{"lang":"en","text":"mxGraph v4.2.2 was discovered to contain a cross-site scripting (XSS) vulnerability via the `setTooltips()` function.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se ha detectado que mxGraph versión v4.2.2, contiene una vulnerabilidad de tipo cross-site scripting (XSS) por medio de la función setTooltips()","source":"nvd"}],"published":"2022-10-11T00:00:00.000Z","modified":"2026-07-09T01:17:44.633Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"4.2.2"}],"ecosystem":"npm","package":"mxgraph","purl":"pkg:npm/mxgraph","source":"ghsa"},{"ranges":[{"status":"affected","version":"4.2.2"}],"vendor":"jgraph","product":"mxgraph","cpe":"cpe:2.3:a:jgraph:mxgraph:4.2.2:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jgraph/mxgraph","tags":["package","product","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/SxB64/mxgraph-xss-vul/wiki","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40440","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-40440","url":"https://www.cve.org/CVERecord?id=CVE-2022-40440","licence":"CVE Terms of Use","modified":"2026-07-09T00:21:27.020Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j4rv-pr9g-q8jv","url":"https://github.com/advisories/GHSA-j4rv-pr9g-q8jv","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:23.954Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-40440","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40440","licence":"Public domain","modified":"2026-07-09T01:17:44.633Z"}],"updatedAt":"2026-11-25T22:58:15.609Z","epss":{"score":0.00713,"percentile":0.54865,"date":"2026-12-01T12:00:22.000Z"}}