{"id":"CVE-2026-54705","state":"PUBLISHED","title":"mathlive's Lack of Escaping of HTML allows for XSS","description":"MathLive provides web components for math display and input. Prior to 0.110.0, MathLive fails to escape text-mode content in \\text{} and \\mbox{} commands in Box.toMarkup at src/core/box.ts, in xmlEscape, scanText, and text-mode output in src/formats/atom-to-math-ml.ts, and through convertLatexToMarkup, convertLatexToMathMl, <math-span>, <math-div>, and the default identity MathfieldElement.createHTML, allowing malicious input to run arbitrary JavaScript when rendered. This issue is fixed in version 0.110.0.","publishedAt":"2026-07-29T17:21:20.414Z","updatedAt":"2026-07-29T17:54:49.618Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["arnog mathlive"],"affected":[{"vendor":"arnog","product":"mathlive","versions":[{"version":"< 0.110.0","status":"affected"}]}],"references":["https://github.com/arnog/mathlive/security/advisories/GHSA-fm7p-gw32-828p","https://github.com/arnog/mathlive/issues/3028","https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8"],"weaknesses":["CWE-116"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54705.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54705","state":"PUBLISHED","datePublished":"2026-07-29T17:21:20.414Z","dateUpdated":"2026-07-29T17:54:49.618Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-15T22:58:06.563Z"},"containers":{"cna":{"title":"mathlive's Lack of Escaping of HTML allows for XSS","descriptions":[{"lang":"en","value":"MathLive provides web components for math display and input. Prior to 0.110.0, MathLive fails to escape text-mode content in \\text{} and \\mbox{} commands in Box.toMarkup at src/core/box.ts, in xmlEscape, scanText, and text-mode output in src/formats/atom-to-math-ml.ts, and through convertLatexToMarkup, convertLatexToMathMl, <math-span>, <math-div>, and the default identity MathfieldElement.createHTML, allowing malicious input to run arbitrary JavaScript when rendered. This issue is fixed in version 0.110.0."}],"affected":[{"vendor":"arnog","product":"mathlive","versions":[{"version":"< 0.110.0","status":"affected"}]}],"references":[{"url":"https://github.com/arnog/mathlive/security/advisories/GHSA-fm7p-gw32-828p","name":"https://github.com/arnog/mathlive/security/advisories/GHSA-fm7p-gw32-828p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/arnog/mathlive/issues/3028","name":"https://github.com/arnog/mathlive/issues/3028","tags":["x_refsource_MISC"]},{"url":"https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8","name":"https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-116","lang":"en","description":"CWE-116: Improper Encoding or Escaping of Output","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-29T17:21:20.414Z"},"source":{"advisory":"GHSA-fm7p-gw32-828p","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/arnog/mathlive/security/advisories/GHSA-fm7p-gw32-828p","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-29T17:54:40.585652Z","id":"CVE-2026-54705","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-29T17:54:49.618Z"}}]}}}