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

State
Published
Severity
6.1 Medium
Published
Nov 23, 2026
Updated
Nov 23, 2026
Reserved
Nov 20, 2026

Read the record on cve.org

Description

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.

ProductVersions
odf-kit GitHubNewbie0>= 0.9.8, < 0.14.2 Affected

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.