Read the docs

odf-kit odsToHtml() XSS via unescaped style attributes

Priority LOW 27CWE-79Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0038 23rd percentileScored 2026-11-30
Fix Fixed odf-kit (GitHubNewbie0): 0.14.2

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

VendorProductAffected versionsFixed inStatusSource
GitHubNewbie0odf-kit0.9.8 to before 0.14.20.14.2Patch availableCNA
  • 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

  1. 2026-11-23 Threatist record created from CVE-2026-134010
  2. 2026-11-23 CISA SSVC decision points changed

References

  • 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