Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. odf-kit
  4. ›
  5. CVE-2026-113787

CVE-2026-113787: odf-kit: HTML injection leading to XSS in odtToHtml() and odsToHtml() via unescaped style attribute values

November 4, 2026

ODF style attribute values are interpolated into style="..." attributes without HTML-escaping in both of odf-kit’s to-HTML renderers (odtToHtml and odsToHtml). A double-quote character inside an attacker-controlled style value breaks out of the attribute, allowing arbitrary HTML/attribute injection — and therefore script execution (XSS) — from a crafted .odt or .ods file wherever the rendered output is inserted as HTML, which is the documented purpose of both functions.

References

  • github.com/GitHubNewbie0/odf-kit/commit/fa3abc5a7a757f56c7212b2dbe99d1d2db995420
  • github.com/GitHubNewbie0/odf-kit/releases/tag/v0.14.2
  • github.com/GitHubNewbie0/odf-kit/security/advisories/GHSA-3cgg-c5pp-57h6
  • github.com/advisories/GHSA-3cgg-c5pp-57h6
  • nvd.nist.gov/vuln/detail/CVE-2026-113787

Code Behaviors & Features

Detect and mitigate CVE-2026-113787 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.6.0 before 0.14.2

Fixed versions

  • 0.14.2

Solution

Upgrade to version 0.14.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/odf-kit/CVE-2026-113787.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 05 Nov 2026 00:17:00 +0000.