CVE-2026-134010: odf-kit: HTML injection leads to XSS in odsToHtml() via unescaped style attribute values

Published Nov 23, 2026
·
Updated

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

1 affected component
npm/odf-kit>=0.9.8<=0.14.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade odf-kit to a version that resolves this vulnerability.

    Fixed in 0.14.2

Event History

Nov 23, 2026
CVE Published
via MITRE·05:37 PM
Data Sourced
via MITRE·05:37 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

What version fixes the issue?

Upgrade odf-kit to version 0.14.2, which fixes the unescaped style attribute handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203