CVE-2026-113787
Last modified
CVE-2026-113787 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. odf-kit allows users to generate, fill, read, and convert OpenDocument Format files (.odt, .ods) in TypeScript and JavaScript. Starting in version 0.6.0 and prior to version 0.14.2, he renderer has an `escapeHtml()` helper and applies it consistently to text content and to attribute values — `href`, `src`, `alt`, `id`, `data-author`, `data-date`, citation text all go through it.
Description
odf-kit allows users to generate, fill, read, and convert OpenDocument Format files (.odt, .ods) in TypeScript and JavaScript. Starting in version 0.6.0 and prior to version 0.14.2, he renderer has an `escapeHtml()` helper and applies it consistently to text content and to attribute values — `href`, `src`, `alt`, `id`, `data-author`, `data-date`, citation text all go through it. The inline CSS strings do not. In `renderTextSpan` (`dist/odt/to-html/html-renderer.js:195`), the value of e.g. `fo:color` is copied from the document into `style.fontColor` verbatim by the parser (`extractSpanStyle`, read/parser.js:348), then concatenated raw into the attribute. A `"` in the value terminates the attribute early. The same unescaped `style="${...}"` pattern appears at roughly ten other emission sites: paragraph and heading (`paragraphStyleToCss`), table cells and rows (`cellStyleToCss`, `rowStyleToCss`), `<col>`, and the image style attribute. The affected source attributes include `fo:color`, `fo:background-color`, `fo:text-shadow`, `fo:letter-spacing`, `fo:font-family` (via both direct and font-face resolution), `fo:margin-*`, `fo:padding-*`, `fo:line-height`, `fo:border*`, and `style:vertical-align`. Version 0.14.2 contains a patch.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| GitHubNewbie0 | odf-kit | >= 0.6.0, < 0.14.2 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-113787?
How severe is CVE-2026-113787?
How do I fix CVE-2026-113787?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-113744A security vulnerability has been detected in Tenda AC19 16.…10
- CVE-2026-11375IBM MQ could allow an authenticated attacker to cause a deni…8.8
- CVE-2026-113776virtualenv is a tool for creating isolated virtual python en…7.8
- CVE-2026-113779The pfSense REST API package is an unofficial, open-source R…8.8
- CVE-2026-11378IBM MQ could allow an authenticated attacker to cause a deni…8.8
- CVE-2026-113786pypdf is a free and open-source pure-python PDF library. Pri…2.3
- CVE-2026-113788Lagoon is an application delivery platform for Kubernetes. V…9.4
- CVE-2026-113789pypdf is a free and open-source pure-python PDF library. Pri…6
- CVE-2026-11379GitLab has remediated an issue in GitLab EE affecting all ve…5.3
- CVE-2026-113790pypdf is a free and open-source pure-python PDF library. Pri…6
- CVE-2026-113791pypdf is a free and open-source pure-python PDF library. Pri…6
- CVE-2026-113792pypdf is a free and open-source pure-python PDF library. Pri…6
Are you affected by CVE-2026-113787?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
