FileCodeBox 2.2.1 through 2.8.4 Stored XSS via Markdown Preview Parser Error
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 13, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 13, 2026
Description
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.
| Product | Versions |
|---|---|
| FileCodeBox vastsa | 2.2.1 through 2.8.4 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 6.1 Medium | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://vul.yulun.ac.cn/20261027/filecodebox/Third-Party Advisory
- https://github.com/vastsa/FileCodeBox/issues/557Issue Tracker
- https://github.com/vastsa/FileCodeBoxFronted/commit/4c40406d366af1583a3ba2327366b7a62d765537Patch
- https://github.com/vastsa/FileCodeBoxFronted/blob/bcc1dbda06b772d6f4afbcc12c6f12e60bbbc7da/src/utils/content-preview.ts#L43-L57Technical Details
- https://github.com/vastsa/FileCodeBoxFronted/blob/bcc1dbda06b772d6f4afbcc12c6f12e60bbbc7da/src/components/common/ContentPreviewModal.vue#L45-L50Technical Details
- VulnCheck Advisory: FileCodeBox 2.2.1 through 2.8.4 Stored XSS via Markdown Preview Parser ErrorThird-Party Advisory
- https://github.com/Wu-Yulun/vul-reports/blob/master/20261027/filecodebox/readme.zh-CN.mdExploit
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.