CVE-2026-129876
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…
Impact
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.
An attacker can exploit this with local access to the system, without logging in, but a user has to actively do something, such as open a file or a link. If it succeeds: high risk of data being read, low risk of data or systems being changed.
Affected products · iOfficeAI
| Product | Affected versions |
|---|---|
| OfficeCLI | from 1.0.56 through 1.0.161 Version 1.0.56 ≤1.0.161 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://vul.yulun.ac.cn/20261106/officecli/
- https://github.com/iOfficeAI/OfficeCLI/blob/91c06b6f5c80e3f33d957ff0426672f558efa25e/src/officecli/Handlers/Word/WordHandler.HtmlPreview.Markers.cs#L89-L95
- https://github.com/iOfficeAI/OfficeCLI/blob/91c06b6f5c80e3f33d957ff0426672f558efa25e/src/officecli/Handlers/Word/WordHandler.HtmlPreview.cs#L200-L205
- https://github.com/iOfficeAI/OfficeCLI/blob/91c06b6f5c80e3f33d957ff0426672f558efa25e/src/officecli/Core/Watch/WatchServer.cs#L2497-L2501
- https://github.com/iOfficeAI/OfficeCLI/blob/91c06b6f5c80e3f33d957ff0426672f558efa25e/src/officecli/Handlers/Word/WordHandler.Add.Markdown.cs#L37-L44
- https://www.vulncheck.com/advisories/officecli-1.0.56-through-1.0.161-stored-xss-via-watch-preview-list-marker-color
- https://github.com/advisories/GHSA-v6hm-j39x-7439
- https://nvd.nist.gov/vuln/detail/CVE-2026-129876
- https://vul.yulun.ac.cn/20261106/officecli