odf-kit: HTML injection leading to XSS
Affects odf-kitSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 0.14.2 when convenient.
Data as of 4 Nov 2026, 20:00 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.1 |
|---|
- Patch
- Available – fixed in 0.14.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.
What to do
Upgrade odf-kit to 0.14.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmodf-kit | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in odf-kit version 0.14.2 that properly escapes style attribute values to prevent HTML injection and XSS. Users should upgrade to version 0.14.2 or later. No other mitigations are indicated by the vendor advisory.
Description
The odf-kit library versions from 0.6.0 up to but not including 0.14.2 contain an HTML injection vulnerability in the odtToHtml() and odsToHtml() functions. This occurs because style attribute values from ODF documents are inserted into HTML style attributes without proper escaping, allowing an attacker to inject arbitrary HTML and execute scripts (XSS) via crafted .odt or .ods files. The issue affects multiple style attributes and is present in both the ODT and ODS to-HTML renderers. A fix is available in version 0.14.2.
References
- github.com/GitHubNewbie0/odf-kit/security/advisories/GHSA-3cgg-c5pp-57h6 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-113787 (opens in a new tab)
- github.com/GitHubNewbie0/odf-kit/commit/fa3abc5a7a757f56c7212b2dbe99d1d2db995420 (opens in a new tab)
- github.com/GitHubNewbie0/odf-kit (opens in a new tab)
- github.com/GitHubNewbie0/odf-kit/releases/tag/v0.14.2 (opens in a new tab)