CVE-2026-27605

Chartbrew: Stored Cross-Site Scripting (XSS) via File Upload API

Published Mar 6, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. Prior to version 4.8.4, the application allows uploading files (project logos) without validating the file type or content. It trusts the extension provided by the user. These files are saved to the uploads/ directory and served statically. An attacker can upload an HTML file containing malicious JavaScript. Since authentication tokens are likely stored in localStorage (as they are returned in the API body), this XSS can lead to account takeover. This issue has been patched in version 4.8.4.

Analysis

AI-generated

Technical impact

Chartbrew’s file upload API accepts any file based solely on its extension and stores it in a publicly served uploads directory. The lack of MIME type or content validation permits an attacker to upload an HTML file containing malicious script. When that file is served, the embedded JavaScript runs in the context of the site, potentially accessing authentication tokens stored in localStorage and leading to user account compromise.

Affected Systems

All installations of Chartbrew built before version 4.8.4 are vulnerable. The issue is fixed in Chartbrew 4.8.4 and later releases.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.3, indicating moderate severity, and an EPSS score of less than 1%, meaning the probability of exploitation is low. It is not listed in the CISA KEV catalog. The likely attack vector is a legitimate API call to the file upload endpoint, where an attacker can supply a crafted HTML file that is subsequently served without filtering, enabling stored XSS.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor patch or upgrade to Chartbrew version 4.8.4 or later, which validates uploaded file types.
  • If an upgrade is not immediately feasible, configure the server to reject uploads that are not legitimate image MIME types (e.g., image/png, image/jpeg) and validate the file’s content before saving.
  • Move or remove the shared uploads directory from the static public path, serving files through a controlled endpoint that sanitizes output or sets proper content‑disposition headers.

Generated by OpenCVE AI on April 17, 2026 at 12:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Depomo
Depomo chartbrew
CPEs cpe:2.3:a:depomo:chartbrew:*:*:*:*:*:*:*:*
Vendors & Products Depomo
Depomo chartbrew
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Chartbrew
Chartbrew chartbrew
Vendors & Products Chartbrew
Chartbrew chartbrew
Type Values Removed Values Added
Description Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. Prior to version 4.8.4, the application allows uploading files (project logos) without validating the file type or content. It trusts the extension provided by the user. These files are saved to the uploads/ directory and served statically. An attacker can upload an HTML file containing malicious JavaScript. Since authentication tokens are likely stored in localStorage (as they are returned in the API body), this XSS can lead to account takeover. This issue has been patched in version 4.8.4.
Title Chartbrew: Stored Cross-Site Scripting (XSS) via File Upload API
Weaknesses CWE-434
CWE-79
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 6, 2026, 4:08 PM
Reserved
Feb 20, 2026, 7:43 PM
Status
Analyzed
Published
Mar 6, 2026, 5:16 AM
Modified
Jun 17, 2026, 10:27 AM