Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted .ods file to victim app
-
DeliveryApp converts via vulnerable odsToHtml()
-
ExploitUnescaped style value breaks out of attribute
-
ExecutionInjected HTML/handler inserted into DOM
-
PersistScript executes in page origin
-
ImpactSession/data theft in host origin
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a consuming application to (1) use odf-kit's odsToHtml() renderer on an attacker-supplied/untrusted .ods file and (2) insert that converted output into the page as HTML (the documented purpose of the function). The malicious value rides in document-controlled cell formatting properties (fo:color, fo:font-size, fo:font-family, fo:background-color, fo:text-align) or in the style:row-height value, which before 0.14.2 are written into a style="..." attribute without HTML-escaping. Limiting factors: the victim must actually process/convert the crafted file (CVSS UI:R), the affected version must be in range 0.9.8-0.14.1, and the host application must render the output as live HTML rather than sanitizing or text-encoding it - applications that post-sanitize the HTML or never insert it into the DOM are not exploitable. |
| Impact | This is a moderate-severity stored/reflected XSS (CWE-79) in the odf-kit npm library, rated CVSS 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N). The network vector, low complexity and no-privileges metrics reflect that any crafted .ods file can carry the payload, but UI:R is the dominant limiter: exploitation only fires when a downstream application actually calls odsToHtml() and inserts the result into the DOM as HTML - so the real attack surface is a function of who deploys the library that way, not of the library's mere presence. The scope change (S:C) is well-justified because injected script executes in the host page's origin rather than the parsing library's context, which is what makes this more than a cosmetic bug. The vuln.today decision label is 'this_month' (not act_now/emergency), and there is no CISA KEV listing and no EPSS score supplied, so there is no signal of active or widespread exploitation; this reads as a genuine but non-urgent fix-in-maintenance issue rather than a drop-everything event. Exploitation status: no public exploit identified at time of analysis - the references are the GHSA advisory and the two patch commits, not working exploit code. The main uncertainty is deployment footprint: odf-kit is an obscure package and the number of consumers rendering its output as untrusted HTML is unknown, so real-world risk is bounded more by low prevalence than by weak exploitability. |
| Exploit ScenarioDerived | An attacker crafts a malicious .ods spreadsheet whose cell formatting (e.g. fo:color/fo:background-color) or style:row-height value contains a double-quote that breaks out of the generated style="..." attribute and injects an element such as an event-handler-bearing tag. A victim application that converts the uploaded file with odsToHtml() and inserts the output into its page then executes the attacker's JavaScript in its own origin. No public exploit code is identified, but the injection mechanism is fully described in the GHSA advisory and the fix diff. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
HTML injection leading to XSS in odf-kit's odsToHtml() renderer lets a crafted .ods spreadsheet break out of the style attribute and inject arbitrary markup or attributes into the converted output, executing script in the host page's origin when that output is inserted as HTML. Affected are npm odf-kit versions 0.9.8 through 0.14.1; the flaw is unauthenticated from the network with user interaction required (CVSS 6.1, CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), since a victim application must convert the malicious file and render the result as live HTML. Version 0.14.2 fixes both emission sites by routing document-controlled values through a shared attribute-escaping helper; no public exploit code has been identified at time of analysis and the issue is not in CISA KEV, though the priority signal places it within this month's remediation window.
RemediationAI
Vendor-released patch: upgrade odf-kit to 0.14.2 or later, which escapes document-controlled style values in both the cell-style and row-height emission paths via the new shared escapeAttr helper; the two upstream commits are https://github.com/GitHubNewbie0/odf-kit/commit/1424227d1ca2716a249b623d1456575ff0331dcc (escape style attribute values in the ODS HTML renderer) and https://github.com/GitHubNewbie0/odf-kit/commit/aa64c734ebd7e7be40e35fcda83b1144193c3da2 (the shared escapeAttr helper), with the advisory at https://github.com/GitHubNewbie0/odf-kit/security/advisories/GHSA-2rqm-h6hv-g79v. If upgrading is not immediately possible, run odsToHtml() output through an HTML sanitizer configured to strip event-handler attributes and script/style content before insertion (trade-off: sanitizers can alter legitimate inline styling and require careful allow-listing), or insert the converted markup only inside a sandboxed iframe or with a restrictive Content-Security-Policy that blocks inline script (trade-off: sandboxing breaks styling interactions and CSP must be comprehensive to be effective). Do not treat escaping the .ods at parse time alone as sufficient unless every style value is validated against an allow-list, and note that lifting the fix for odsToHtml() does not cover the separately tracked odtToHtml() issue (GHSA-3cgg-c5pp-57h6 / CVE-2026-113787).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
odf-kit is a TypeScript/JavaScript library for producing and consuming OpenDocument Format files; ODS spreadsheets are ZIP archives of XML in which cell formatting is carried in attributes such as fo:color, fo:font-size, fo:font-family, fo:background-color and fo:text-align, and row sizing in style:row-height. The renderer converts those parsed values into inline CSS: buildInlineStyle() assembles a CSS string that renderCell emits raw into style="...", and renderRow emits row.height raw into the row element's style attribute. Because neither path HTML-escapes its input, a double-quote character inside an attacker-supplied style value terminates the attribute and lets the attacker append arbitrary attributes or elements - the classic CWE-79 attribute-context injection pattern, here with the vulnerable sink being the library's documented output rather than a server template. The fix in 0.14.2 adds an internal escapeAttr helper in src/core/index.ts (deliberately not exported via package.json) and applies it at both sites in src/ods/to-html/html-renderer.ts. The identical defect in the ODT renderer odtToHtml() is tracked separately as GHSA-3cgg-c5pp-57h6 / CVE-2026-113787, so consumers using both renderers should treat them as a pair. The affected package is identified in CPE as cpe:2.3:a:githubnewbie0:odf-kit.
Know when Odf Kit gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Crafted file is attacker-controlled (AC:L, PR:N) but a victim must convert/render it (UI:R); injected script runs in the host page origin (S:C) giving limited C/I and no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-133321
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB