Skip to main content

FileCodeBox EUVDEUVD-2026-125597

| CVE-2026-129170 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-g3pw-9gjh-mjcc
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Share crafted text as unauthenticated user
  2. Delivery
    Nested blockquotes force marked parser to throw
  3. Exploit
    renderMarkdownPreview returns unsanitized HTML
  4. Execution
    Admin opens content preview, script runs
  5. Impact
    Steal 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

FileCodeBox 2.2.1 ≤2.8.4

Affected Packages

euvd filecodebox no fix

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

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
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
vuln.today AI 6.1 MEDIUM

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).

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche open-source self-hosted file-sharing app, limited enterprise footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy