{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.0.56"
                  },
                  {
                    "last_affected": "1.0.161"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "1.0.56"
                  },
                  {
                    "last_affected": "1.0.161"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "3022108c984c44de70f0c1439c2b89ab778132f8"
            },
            {
              "last_affected": "91c06b6f5c80e3f33d957ff0426672f558efa25e"
            }
          ],
          "repo": "https://github.com/iofficeai/officecli",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129876.json"
  },
  "details": "OfficeCLI 1.0.56 through 1.0.161 contains a stored cross-site scripting vulnerability in the officecli watch preview that allows attackers to inject script via unescaped numbering w:color values. Attackers can craft a DOCX whose color closes the style element, then abuse the unauthenticated /api/batch endpoint to read local files and modify the watched document.",
  "id": "CVE-2026-129876",
  "modified": "2026-11-18T15:45:20.294621652Z",
  "published": "2026-11-16T14:19:22.817Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129876.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129876"
    },
    {
      "type": "ADVISORY",
      "url": "https://vul.yulun.ac.cn/20261106/officecli/"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/officecli-1.0.56-through-1.0.161-stored-xss-via-watch-preview-list-marker-color"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/iOfficeAI/OfficeCLI"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/iOfficeAI/OfficeCLI/blob/91c06b6f5c80e3f33d957ff0426672f558efa25e/src/officecli/Core/Watch/WatchServer.cs#L2497-L2501"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/iOfficeAI/OfficeCLI/blob/91c06b6f5c80e3f33d957ff0426672f558efa25e/src/officecli/Handlers/Word/WordHandler.Add.Markdown.cs#L37-L44"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/iOfficeAI/OfficeCLI/blob/91c06b6f5c80e3f33d957ff0426672f558efa25e/src/officecli/Handlers/Word/WordHandler.HtmlPreview.Markers.cs#L89-L95"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/iOfficeAI/OfficeCLI/blob/91c06b6f5c80e3f33d957ff0426672f558efa25e/src/officecli/Handlers/Word/WordHandler.HtmlPreview.cs#L200-L205"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "OfficeCLI 1.0.56 through 1.0.161 Stored XSS via Watch Preview List Marker Color"
}