Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessShare crafted text as unauthenticated user
-
DeliveryNested blockquotes force marked parser to throw
-
ExploitrenderMarkdownPreview returns unsanitized HTML
-
ExecutionAdmin opens content preview, script runs
-
ImpactSteal admin token from localStorage
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the FileCodeBox text/content-sharing feature to be reachable by an unauthenticated attacker, and the shared payload must use many thousands of nested blockquote markers specifically to make the 'marked' parser throw - because the unsanitized fallback only occurs on a parser exception in renderMarkdownPreview. The attack is not self-firing: a victim must open the malicious item in the ContentPreviewModal (UI:P), and meaningful impact depends on that victim being an administrator whose session token is stored in localStorage, since the payload targets the admin token. Limiting factors are therefore the required victim interaction, the need for an admin to view the content, and the requirement to reliably trigger the parser error; versions outside 2.2.1-2.8.4 and instances already updated with the vendor patch are not affected. |
| Impact | This is a moderate-priority stored XSS (CWE-79), not an emergency. The vendor/NVD-style CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N, 5.3 Medium) shows a network-reachable, low-complexity flaw that an unauthenticated attacker can plant (PR:N), but which only fires when a victim passively views the content (UI:P), capping impact at Low. The vuln.today decision label is 'this_month' rather than act_now/emergency, and there is no CISA KEV listing and no EPSS score provided - so there is no signal of active or widespread exploitation; this reads as a credible, researcher-reported issue (VulnCheck) rather than a mass-exploited one. The offsetting factor is the payload's specific target: the script steals the admin token from localStorage, so successful exploitation yields admin-session compromise of the FileCodeBox instance despite the 'Low' confidentiality/integrity metrics. No EPSS or KEV data is present in the input, so probability-of-exploitation and in-the-wild status cannot be quantified from the available signals and should be treated as unknown rather than low. |
| Exploit ScenarioDerived | An unauthenticated attacker uses FileCodeBox's public text-sharing feature to submit content containing thousands of nested blockquote markers followed by an HTML/script payload; the deeply nested input makes the marked Markdown parser throw, and renderMarkdownPreview returns the raw unsanitized text. When an administrator later opens that shared item in the content preview modal, the injected script executes in the admin's browser and exfiltrates the admin token from localStorage. A public technical write-up and issue reference exist (GitHub issue #557 and the VulnCheck advisory), but the input does not confirm them as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Stored cross-site scripting in FileCodeBox 2.2.1 through 2.8.4 lets an unauthenticated attacker plant script-bearing content through the text/content-sharing feature by sending thousands of nested blockquote markers ahead of an HTML payload; the 'marked' parser throws on that input and renderMarkdownPreview returns the raw text without sanitization. The script runs when a victim opens the item in ContentPreviewModal and targets the admin token held in localStorage, so meaningful impact requires an administrator to preview the shared content (CVSS 4.0 5.3; assessed CVSS 3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N). No CISA KEV entry and no public exploit code is confirmed in the available intelligence; the vendor-side fix is present as an upstream commit in FileCodeBoxFronted, and instances on versions outside 2.2.1-2.8.4 or already carrying the fix are not affected.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply commit 4c40406d366af1583a3ba2327366b7a62d765537 in vastsa/FileCodeBoxFronted (https://github.com/vastsa/FileCodeBoxFronted/commit/4c40406d366af1583a3ba2327366b7a62d765537), which hardens the renderMarkdownPreview fallback so parser exceptions yield sanitized/escaped output and adds regression tests for the sanitization boundary and safe fallback (issue #557). The vendor patch is listed as available; confirm the availability of a tagged frontend release before relying on a version string, and validate the deployed frontend build actually contains the change. Until then, compensating controls with trade-offs: restrict or disable the public text/content-sharing feature so unauthenticated users cannot plant content that reaches ContentPreviewModal (removes functionality for legitimate sharing); require administrators to avoid previewing untrusted shared items, since the payload only executes in the admin's ContentPreviewModal view (relies on operator discipline, not enforcement); and reduce the value of the stolen credential by shortening admin session lifetime and clearing tokens from localStorage on logout, acknowledging that the frontend's token-in-localStorage design still exposes any live token to script running in the origin. Network-level restrictions reduce exposure only if the sharing endpoints are unreachable to untrusted users.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FileCodeBox is a file/text sharing service whose web frontend (vastsa/FileCodeBoxFronted) is a Vue application that renders shared content as Markdown. The vulnerable path is renderMarkdownPreview in src/utils/content-preview.ts, which dynamically imports the 'marked' Markdown parser and DOMPurify and normally sanitizes rendered output against an allow-list of Markdown tags (MARKDOWN_ALLOWED_TAGS, referenced at content-preview.ts lines 43-57). The root cause is CWE-79: on the parser-exception path the function falls back to returning the original unsanitized text instead of sanitized or escaped output, so markup that makes 'marked' throw - here deeply nested blockquote markers - bypasses DOMPurify entirely. ContentPreviewModal.vue (lines 45-50) is where the returned string reaches the DOM, and the frontend reads the administrator session token from localStorage (src/composables/useAdminSession.ts), which is what the injected script exfiltrates. The upstream commit 4c40406d366af1583a3ba2327366b7a62d765537 addresses this by hardening the preview/sanitization boundary and, per its README/package.json changes, adding a pnpm test script that runs Node's built-in test runner with isolated VM modules to cover 'Markdown preview sanitization boundaries and safe fallback behavior (including issue #557)'; the same commit also adds an explicit comment in the useAdminSession catch path so verification failures fall through to clearing the local session.
Know when Filecodebox gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Unauthenticated attacker plants the payload (PR:N) but an admin must view it (UI:R); stored XSS executes in the victim's browser across a trust boundary (S:C) with limited token/data impact (C:L/I:L, A:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Filecodebox
View allA vulnerability found in IPRateLimit implementation of FileCodeBox up to 2.2 allows remote attackers to bypass ip-based
A path Traversal vulnerability found in FileCodeBox v2.2 and earlier allows arbitrary file writes when application is co
Race condition exploitation in FileCodeBox's Pickup Limit Handler allows remote unauthenticated attackers to bypass conf
A stored cross-site scripting (XSS) vulnerability is found in the text sharing feature of FileCodeBox version 2.2 and ea
FileCodeBox 2.0 stores a OneDrive password and AWS key in a cleartext env file. Rated medium severity (CVSS 5.3), this v
EUVD-2026-125597
GHSA-g3pw-9gjh-mjcc
NVD
CVE.org
EPSS
Exploit-DB