Apache Superset Stored XSS on Dashboard markdown
Date: 2022-05
Affected: pip/apache-superset
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2021-27907
CWE: CWE-79
CVSS: 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):