{"id":"GHSA-qwj6-q94f-8425","revision":"1d3d335438294fc3b3e79fe82473fc97","records":[{"revision":"1d3d335438294fc3b3e79fe82473fc97","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-qwj6-q94f-8425","aliases":["CVE-2025-29049"],"title":"MathLive's Lack of Escaping of HTML allows for XSS","description":"### 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.","state":0,"publishedAt":"2025-01-21T21:17:52+00:00","modifiedAt":"2026-07-08T07:27:38.1591091+00:00","affected":[{"ecosystem":"npm","name":"mathlive","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.104.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/arnog/mathlive/security/advisories/GHSA-qwj6-q94f-8425","https://nvd.nist.gov/vuln/detail/CVE-2025-29049","https://github.com/arnog/mathlive/commit/abc26056fd5e29a99edfa96a0bbe855ea2a8b678","https://github.com/arnog/mathlive"],"sourceUrl":"https://github.com/advisories/GHSA-qwj6-q94f-8425","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qwj6-q94f-8425","identifiers":["GHSA-qwj6-q94f-8425","CVE-2025-29049"]},"retained":false,"historicalAffected":[]}],"coverage":[]}