odf-kit: HTML injection leads to XSS in odsToHtml() via unescaped style attribute values
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| GitHubNewbie0odf-kit | — | Not listed |
| npmodf-kit |
≥ 0.9.8, < 0.14.2→ 0.14.2 |
0.14.2 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com