{"id":"CVE-2025-29049","aliases":["CVE-2025-29049","GHSA-qwj6-q94f-8425"],"related":[],"kind":"vulnerability","state":"published","title":"MathLive's Lack of Escaping of HTML allows for XSS","summary":"Cross Site Scripting vulnerability in arnog MathLive Versions v0.103.0 and before (fixed in 0.104.0) allows an attacker to execute arbitrary code via the MathLive function.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cross Site Scripting vulnerability in arnog MathLive Versions v0.103.0 and before (fixed in 0.104.0) allows an attacker to execute arbitrary code via the MathLive function.","source":"cvelist"},{"lang":"en","text":"### Summary\nDespite normal text rendering as LaTeX expressions, preventing XSS, the library also provides users with commands which may modify HTML, such as the `\\htmlData` command, and the lack of escaping leads to XSS.\n\n### Details\nOverall in the code, other than in the `test` folder, no functions escaping HTML can be seen.\n\n### PoC\n1. Go to https://cortexjs.io/mathlive/demo/\n2. Paste either `\\htmlData{><img/onerror=alert(1)\"src=}{}` or `\\htmlData{x=\" ><img/onerror=alert(1) src>}{}` in the LaTeX textarea.\n\n### Impact\nMathLive users who render untrusted mathematical expressions could encounter malicious input using \\htmlData that runs arbitrary JavaScript, or generate invalid HTML.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La vulnerabilidad de cross-site scripting en arnog MathLive versiones v0.103.0 y anteriores (corregida en 0.104.0) permite a un atacante ejecutar código arbitrario a través de la función MathLive.","source":"nvd"}],"published":"2025-01-21T21:17:52.000Z","modified":"2026-07-08T07:27:38.159Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-116"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.104.0"}],"ecosystem":"npm","package":"mathlive","purl":"pkg:npm/mathlive","source":"ghsa"}],"references":[{"url":"https://github.com/advisories/GHSA-qwj6-q94f-8425","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://github.com/arnog/mathlive/commit/abc26056fd5e29a99edfa96a0bbe855ea2a8b678","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/arnog/mathlive/security/advisories/GHSA-qwj6-q94f-8425","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29049","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/arnog/mathlive","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-01T20:48:57.914Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-29049","url":"https://www.cve.org/CVERecord?id=CVE-2025-29049","licence":"CVE Terms of Use","modified":"2025-04-01T20:49:01.248Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qwj6-q94f-8425","url":"https://github.com/advisories/GHSA-qwj6-q94f-8425","licence":"CC-BY-4.0","modified":"2026-07-08T07:27:38.159Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-29049","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29049","licence":"Public domain","modified":"2026-06-17T09:05:05.683Z"}],"updatedAt":"2026-11-25T22:58:55.929Z","epss":{"score":0.00689,"percentile":0.5404,"date":"2026-12-01T12:00:22.000Z"}}