CVE-2025-51662
MediumCVSS 5.4Exploitation Probability (EPSS)
Low risk8th percentile - higher than 8% of all known CVEs
Summary
A stored cross-site scripting (XSS) vulnerability is found in the text sharing feature of FileCodeBox version 2.2 and earlier. Insufficient input validation allows attackers to inject arbitrary JavaScript code into shared text "codeboxes". The XSS payload is automatically executed in the browsers of users who access the infected codebox.
Risk Assessment
An attacker can execute arbitrary JavaScript in a victim's browser, potentially leading to session or data theft or actions performed on behalf of the user. The risk affects all users visiting infected shares.
Recommendation
Upgrade FileCodeBox to a version later than 2.2 if available, or implement proper input validation and sanitization. Consider disabling the text sharing feature until a fix is released.
Other vulnerabilities in FileCodeBox
See all- CVE-2026-82543High
A vulnerability was detected in vastsa FileCodeBox up to 2.3. The vulnerability affects the function update_file_usage in the file apps/base/views.py of the component Pickup Limit Handler. Performing a manipulation results in race condition. The attack can be initiated remotely. The exploit is public. Upgrading to version 2.5.0 resolves the issue.
- CVE-2026-64619High
FileCodeBox before version 2.4 has a rate-limit bypass vulnerability in the IPRateLimit class. An unauthenticated attacker can supply controlled X-Real-IP and X-Forwarded-For headers without trusted reverse proxy verification, allowing enumeration of share codes and retrieval of other users' files.
- CVE-2025-51663High
A vulnerability in the IPRateLimit implementation of FileCodeBox up to 2.2 allows remote attackers to bypass IP-based rate limit protection and failed attempt restrictions by faking X-Real-IP and X-Forwarded-For HTTP headers. This can enable attackers to perform DoS attacks or brute force share codes.
- CVE-2025-51661High
A path traversal vulnerability in FileCodeBox v2.2 and earlier allows arbitrary file writes when the application is configured to use local filesystem storage. The SystemFileStorage.save_file method in core/storage.py uses user-supplied filenames without validation to construct save_path, allowing remote attackers to write files outside the intended directory via crafted POST requests to the /share/file/ upload endpoint, which requires no authorization.
Original NVD description (English source)
A stored cross-site scripting (XSS) vulnerability is found in the text sharing feature of FileCodeBox version 2.2 and earlier. Insufficient input validation allows attackers to inject arbitrary JavaScript code into shared text "codeboxes". The xss payload is automatically executed in the browsers of any users who try to access the infected codebox by clicking link or entering share code.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

