Advisory record · GHSA-2rqm-h6hv-g79v

odf-kit has HTML injection leading to XSS in odsToHtml() via unescaped style attribute values

CVSS 6.1 Medium

Published by the GitHub Advisory Database at 23 Oct 2026, 20:55 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
odf-kitnpm>=0.9.8, <0.14.20.14.2
Identifiers
GHSA-2rqm-h6hv-g79v
Weakness (CWE)
CWE-79
Published
23 Oct 2026
Updated
23 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The npm package odf-kit, versions 0.9.8 up to but not including 0.14.2, does not escape ODF style values written into style attributes by its ODS-to-HTML renderer (odsToHtml()). A crafted .ods file can break out of the attribute and inject HTML and script, so a user who converts such a file and inserts the output into a page can get cross-site scripting in that page's origin. Upgrade to odf-kit 0.14.2 or later, which escapes these values.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.1 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS No score.

Timeline

  1. 31 Oct 2026, 13:33 UTC First seen by agentprime
  2. 31 Oct 2026, 13:33 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.