CVE-2026-134010: odf-kit: HTML injection leads to XSS in odsToHtml() via unescaped style attribute values
odf-kit is a TypeScript and JavaScript library for working with OpenDocument Format files. In versions 0.9.8 through 0.14.1, the odsToHtml() renderer inserts document-controlled cell formatting and row height values into HTML style attributes without escaping them. An attacker can craft an ODS file that injects arbitrary HTML attributes or elements, allowing JavaScript execution in the host page's origin when an application inserts the converted output as HTML. This issue is fixed in version 0.14.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
odf-kitto a version that resolves this vulnerability.Fixed in 0.14.2
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using odf-kit versions 0.9.8 through 0.14.1 are exposed when they convert an attacker-controlled ODS file with odsToHtml() and insert the resulting output as HTML in a page. Successful exploitation runs JavaScript in the host page's origin.
What does an attacker need to exploit it?
An attacker needs to provide a crafted ODS file containing malicious cell formatting or row height values and have the application render it through odsToHtml(). No privileges are required, but a user must interact with the resulting HTML.
What version fixes the issue?
Upgrade odf-kit to version 0.14.2, which fixes the unescaped style attribute handling.