odf-kit: HTML injection leads to XSS in odsToHtml() via unescaped style attribute values
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in odf-kit 0.14.2.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| GitHubNewbie0 | >=0.9.8 <0.14.2 | ||
| npm: odf-kit | >=0.9.8 <0.14.2 | 0.14.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in odf-kit (npm), strongest first
Embed
A live severity badge for an advisory, README or ticket