← Vulnerability feed

Vulnerability record · CVE-2021-27907 · published 5 March 2021

CVE-2021-27907: Apache Superset dashboard Markdown component stored XSS

Apache · Superset

Apache Superset up to and including 0.38.0 lets a user create a Markdown component on a dashboard page that can embed an SVG element containing JavaScript. Because the injected script is stored and runs automatically when another user views the dashboard, it is a stored cross-site scripting flaw. It matters because dashboards are shared, so one low-privileged author can run script in the browsers of other users.

5.4 CVSS 3.1 Medium EPSS 86% · top 0.3% CWE-79 · Cross-site scripting
5.4CVSS 3.1 base score, v2 3.5
86%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References
17 Jun 2026Last modified by NVD

Description

Apache Superset up to and including 0.38.0 allowed the creation of a Markdown component on a Dashboard page for describing chart's related information. Abusing this functionality, a malicious user could inject javascript code executing unwanted action in the context of the user's browser. The javascript code will be automatically executed (Stored XSS) when a legitimate user surfs on the dashboard page. The vulnerability is exploitable creating a “div” section and embedding in it a “svg” element with javascript code.

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: medium.

high priorityStored XSS in a shared analytics platform with a very high EPSS score can compromise many users, though it requires an authenticated author and victim interaction.

What it is

Apache Superset up to and including 0.38.0 lets a user create a Markdown component on a dashboard page that can embed an SVG element containing JavaScript. Because the injected script is stored and runs automatically when another user views the dashboard, it is a stored cross-site scripting flaw. It matters because dashboards are shared, so one low-privileged author can run script in the browsers of other users.

Impact

An attacker can execute arbitrary JavaScript in the context of a victim's browser session, enabling actions such as session or data theft and unauthorized operations as the victim. The CVSS scope change indicates impact can extend beyond the vulnerable component.

Attack surface

Reached over the network through the dashboard Markdown component; the attacker needs a low-privileged authenticated account to create the component, and a victim must view the affected dashboard page.

Exploitation

Not listed in CISA KEV and no public exploit tag is present in the references, but EPSS is very high (0.86393, 99.7th percentile), indicating elevated predicted exploitation activity.

What to do

  • Upgrade Apache Superset past 0.38.0 to a fixed release; patch first.
  • If immediate upgrade is not possible, restrict who can create or edit dashboard Markdown components.
  • Sanitize or disallow embedded SVG and script content in Markdown components.
  • Apply a Content Security Policy that blocks inline script execution in the Superset UI.

Detection

  • Search Superset dashboard definitions and metadata for Markdown components containing svg or script elements.
  • Review audit logs for dashboard or Markdown component creation by unexpected or low-privileged users.
  • Monitor browser or proxy logs for inline script execution anomalies on Superset dashboard pages.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-27907 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2023-27524Apache Superset default SECRET_KEY allows session forgery and auth bypassApache Superset versions up to and including 2.0.1 ship with a default SECRET_KEY that, if left unchanged, lets an attacker forge signed session cook…KEVEPSS 97%analysed9.8CVE-2024-39887Apache superset sql injection vulnerabilityAn SQL Injection vulnerability in Apache Superset exists due to improper neutralization of special elements used in SQL commands. Specifically, certa…EPSS 4.4%9.8CVE-2022-27479Apache superset sql injection vulnerabilityApache Superset before 1.4.2 is vulnerable to SQL injection in chart data requests. Users should update to 1.4.2 or higher which addresses this issue.EPSS 2.9%9.8CVE-2018-8021Apache Superset pickle deserialization remote code executionApache Superset versions prior to 0.23 deserialized data with an unsafe pickle load method, allowing untrusted serialized data to be executed as code…EPSS 53%analysed8.8CVE-2023-49736Apache superset sql injection vulnerabilityA where_in JINJA macro allows users to specify a quote, which combined with a carefully crafted statement would allow for SQL injection in Apache Sup…EPSS 1.2%8.8CVE-2023-40610Apache superset incorrect authorization vulnerabilityImproper authorization check and possible privilege escalation on Apache Superset up to but excluding 2.1.2. Using the default examples database conn…EPSS 1.3%8.8CVE-2022-43719Apache superset cross-site request forgery vulnerabilityTwo legacy REST API endpoints for approval and request access are vulnerable to cross site request forgery. This issue affects Apache Superset versio…EPSS 0.57%8.8CVE-2021-41971Apache superset sql injection vulnerabilityApache Superset up to and including 1.3.0 when configured with ENABLE_TEMPLATE_PROCESSING on (disabled by default) allowed SQL injection when a malic…EPSS 1.8%

Source: NIST National Vulnerability Database (record CVE-2021-27907), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.