Cross-site Scripting (XSS) - DOM in GitHub repository jgraph/drawio prior to 20.5.2.
{
"cna_assigner": "@huntrdev",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/3xxx/CVE-2022-3873.json"
}{
"cpe": "cpe:2.3:a:diagrams:drawio:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "20.5.2"
}
],
"source": [
"AFFECTED_FIELD",
"CPE_RANGE",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-3873.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "79086362474153155778611743887495818432",
"length": 3292
},
"id": "CVE-2022-3873-2cadd46a",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/jgraph/drawio/commit/d37894baf125430e85840c2635563b10d1a6523d",
"target": {
"file": "src/main/java/com/mxgraph/online/EmbedServlet2.java",
"function": "createEmbedJavaScript"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"194320623952635297537975950581797134414",
"1531774041614904290455787695133092035",
"15406916020798463277768300097326069013",
"225448726091534690587871208366064057794"
],
"threshold": 0.9
},
"id": "CVE-2022-3873-7530323c",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/jgraph/drawio/commit/d37894baf125430e85840c2635563b10d1a6523d",
"target": {
"file": "src/main/java/com/mxgraph/online/EmbedServlet2.java"
}
}
]
"2026-09-09T14:18:08Z"