odf-kit odsToHtml() XSS via unescaped style attributes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
odf-kit versions 0.9.8 through 0.14.1 do not escape document-controlled cell formatting and row height values before inserting them into HTML style attributes in the odsToHtml() renderer. A crafted ODS file can inject arbitrary HTML attributes or elements, and when an application inserts the converted output as HTML, the injected script runs in the host page's origin, enabling cross-site scripting. CVSS 3.1 base score 6.1 (MEDIUM). CWE-79.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GitHubNewbie0 | odf-kit | 0.9.8 to before 0.14.2 | 0.14.2 | Patch available | CNA |
- odf-kit VendorGitHubNewbie0 Affected 0.9.8 to before 0.14.2 Fixed in 0.14.2 Patch available CNA
Remediation
Upgrade odf-kit to version 0.14.2, which fixes the issue. Versions before 0.14.2 are affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA odf-kit (GitHubNewbie0) Fixed in 0.14.2
Timeline
- 2026-11-23 Threatist record created from CVE-2026-134010
- 2026-11-23 CISA SSVC decision points changed
References
More GitHubNewbie0 vulnerabilities
- TI-2026-78851 HTML injection leading to XSS in odf-kit odtToHtml() CVSS 3.1MEDIUM 6.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences