CVE-2026-129170
FileCodeBox 2.2.1 through 2.8.4 contains a stored cross-site scripting vulnerability in renderMarkdownPreview, which returns unsanitized text when the marked p…
Impact
FileCodeBox 2.2.1 through 2.8.4 contains a stored cross-site scripting vulnerability in renderMarkdownPreview, which returns unsanitized text when the marked parser throws. Unauthenticated attackers can share text with thousands of nested blockquote markers followed by HTML payloads, executing script that steals the admin token from localStorage.
An attacker can exploit this over the network, without logging in, but a user has to do something, such as open a file or a link. If it succeeds: low risk of data being read, low risk of data or systems being changed. The attack can reach beyond the vulnerable component itself.
Affected products · Vastsa
| Product | Affected versions |
|---|---|
| FileCodeBox | from 2.2.1 through 2.8.4 Version 2.2.1 ≤2.8.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://vul.yulun.ac.cn/20261027/filecodebox/
- https://github.com/vastsa/FileCodeBox/issues/557
- https://github.com/vastsa/FileCodeBoxFronted/commit/4c40406d366af1583a3ba2327366b7a62d765537
- https://github.com/vastsa/FileCodeBoxFronted/blob/bcc1dbda06b772d6f4afbcc12c6f12e60bbbc7da/src/utils/content-preview.ts#L43-L57
- https://github.com/vastsa/FileCodeBoxFronted/blob/bcc1dbda06b772d6f4afbcc12c6f12e60bbbc7da/src/components/common/ContentPreviewModal.vue#L45-L50
- https://www.vulncheck.com/advisories/filecodebox-2.2.1-through-2.8.4-stored-xss-via-markdown-preview-parser-error
- https://github.com/advisories/GHSA-g3pw-9gjh-mjcc
- https://nvd.nist.gov/vuln/detail/CVE-2026-129170
- https://vul.yulun.ac.cn/20261027/filecodebox
- https://github.com/Wu-Yulun/vul-reports/blob/master/20261027/filecodebox/readme.zh-CN.md