Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. odf-kit
  4. ›
  5. GHSA-2rqm-h6hv-g79v

GHSA-2rqm-h6hv-g79v: odf-kit has HTML injection leading to XSS in odsToHtml() via unescaped style attribute values

October 23, 2026

ODF style values are interpolated into style="..." attributes without HTML-escaping in odf-kit’s ODS to-HTML renderer (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 .ods file wherever the rendered output is inserted as HTML, which is the documented purpose of the function.

References

  • github.com/GitHubNewbie0/odf-kit/commit/1424227d1ca2716a249b623d1456575ff0331dcc
  • github.com/GitHubNewbie0/odf-kit/security/advisories/GHSA-2rqm-h6hv-g79v
  • github.com/advisories/GHSA-2rqm-h6hv-g79v

Code Behaviors & Features

Detect and mitigate GHSA-2rqm-h6hv-g79v 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.9.8 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/GHSA-2rqm-h6hv-g79v.yml

Spotted a mistake? Edit the file on GitLab.

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

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