---
id: "CVE-2026-129876"
page: "https://infrastack.ai/live/CVE-2026-129876"
kind: "vulnerability"
aliases: ["CVE-2026-129876"]
title: "OfficeCLI: stored XSS in watch preview lets crafted DOCX run script"
severity: "medium"
cvss: 6.8
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: []
ecosystems: []
tags: ["ai-tooling", "docx", "local-dev", "officecli"]
not_affected_if: ["no-untrusted-docx", "outside-version-range", "watch-not-running"]
published_at: "2026-11-16T15:17:26+00:00"
first_seen_at: "2026-11-16T15:37:54+00:00"
updated_at: "2026-11-16T15:40:39+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129876", "first_seen_at": "2026-11-16T15:37:54+00:00"}]
exploit_sources: []
---

# OfficeCLI: stored XSS in watch preview lets crafted DOCX run script

Link for people: https://infrastack.ai/live/CVE-2026-129876 (this .md is for agents)

OfficeCLI versions 1.0.56 through 1.0.161 do not escape numbering w:color values in its watch preview, so a crafted DOCX can inject script into the preview page. The attacker can then abuse an unauthenticated /api/batch endpoint to read local files and modify the watched document.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed OfficeCLI version with `officecli --version` and compare it against the affected range 1.0.56 through 1.0.161.
- Find out whether `officecli watch` is running on any machine or server, since the preview is the vulnerable path.
- Confirm whether the watch server is reachable from networks other than the local machine.

## Fix

- Move to a version later than `1.0.161`; the sources do not name the exact fixed release.

## Timeline

- 2026-11-16T15:37:54+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129876

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/officecli-1.0.56-through-1.0.161-stored-xss-via-watch-preview-list-marker-color

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
