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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
vastsa FileCodeBox
Default version status: unaffected
2.2.1 to ≤ 2.8.4affected
pkg:github/vastsa/filecodeboxReferences
- 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/Wu-Yulun/vul-reports/blob/master/20261027/filecodebox/readme.zh-CN.md ↗