CVE-2026-134010 in odf-kitinfo

Summary

by MITRE • 11/23/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability identified within odf-kit versions 0.9.8 through 0.14.1 represents a critical server-side template injection and cross-site scripting risk inherent to the library's handling of OpenDocument Format files during conversion processes. As a TypeScript and JavaScript library designed for parsing and manipulating OpenDocument Format documents, such as ODS spreadsheets, odf-kit provides functionality to render these structured data formats into HTML representations via its odsToHtml() method. The core technical flaw lies in the failure to properly sanitize or escape user-controlled input derived from the source document's metadata and styling properties before embedding them into the generated HTML output. Specifically, when processing cell formatting instructions and row height definitions stored within the ODS file, the renderer directly injects these values into HTML style attributes without applying necessary encoding mechanisms such as HTML entity escaping or context-aware sanitization. This lack of input validation allows an attacker to craft a maliciously constructed ODS file where specific cells contain formatted text that includes raw HTML tags, JavaScript event handlers, or other executable script elements disguised as styling parameters.

From a technical perspective, this flaw aligns with CWE-79, which classifies Improper Neutralization of Input During Web Page Generation known as Cross-site Scripting (XSS). The vulnerability operates by exploiting the trust relationship between the application using odf-kit and the data it processes. When an end-user uploads or interacts with a malicious ODS file, the library parses the document structure and extracts formatting details. Because these details are inserted directly into style attributes without escaping special characters like angle brackets, quotes, or ampersands, the resulting HTML output contains unescaped scriptable content. If the application subsequently inserts this converted HTML string into the Document Object Model using methods such as innerHTML, outerHTML, or document.write(), the browser interprets the injected code as part of the page's native markup rather than plain text. This leads to the execution of arbitrary JavaScript within the security context of the host website, effectively bypassing same-origin policy protections and allowing for session hijacking, credential theft, defacement, or further propagation of malware through phishing techniques embedded in the malicious content.

The operational impact of this vulnerability is severe due to its potential for remote code execution within the victim's browser environment. An attacker who can persuade a user to open a crafted ODS file using an application that relies on vulnerable versions of odf-kit can achieve full control over the client-side session associated with the host domain. This includes access to sensitive cookies, local storage data, and potentially the ability to perform actions on behalf of the authenticated user against other services accessed via the same browser profile. Furthermore, because the attack vector involves a file format commonly used in business and educational environments for sharing spreadsheets, the likelihood of successful exploitation is heightened by the frequent exchange of such documents across organizational boundaries. The persistence of this vulnerability through multiple minor releases indicates that input validation was not prioritized during the initial development phase or subsequent updates until version 0.14.2 addressed the issue.

To mitigate this risk, organizations and developers must immediately upgrade odf-kit to version 0.14.2 or later, where the rendering logic has been corrected to properly escape all dynamic content before insertion into HTML structures. In addition to updating dependencies, it is advisable to implement defense-in-depth strategies such as Content Security Policy headers that restrict inline script execution and enforce strict output encoding at the application layer regardless of library behavior. Developers should also avoid using innerHTML or similar DOM manipulation methods for rendering untrusted data; instead, they should use textContent when displaying raw strings or employ dedicated sanitization libraries like DOMPurify to clean HTML content before insertion. Regular security audits and static code analysis tools configured to detect potential XSS vectors can further reduce the attack surface by identifying unsafe coding patterns early in the development lifecycle. Adhering to these practices ensures that file processing components remain resilient against maliciously crafted inputs designed to exploit rendering engine behaviors.

Responsible

GitHub M

Reservation

11/20/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!