CVE-2021-41971: SQL Injection in Apache Superset

apache-superset Updated 02 Oct 2025

Summary

24/05/2022
Yes i
High
8.8

CVE-2021-41971: Improper Neutralization of Special Elements used in an SQL Command in Apache Superset. Affects apache-superset versions < 1.3.1. Fixed in 1.3.1. How to fix ↓

Also tracked for

The same CVE-2021-41971 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache Superset is an open-source data exploration and visualization platform. It provides a user-friendly interface for creating and sharing interactive dashboards, charts, and reports. The vulnerability identified as CVE-2021-41971 affects Apache Superset versions up to and including 1.3.0 when configured with ENABLE_TEMPLATE_PROCESSING. This feature, disabled by default, allows authenticated users to send custom URLs that can be exploited for SQL injection attacks.

Vulnerability Detail

The vulnerability arises due to improper neutralization of special elements used in an SQL command. When an authenticated user sends an HTTP request with a custom URL, the malicious input is not properly sanitized, leading to SQL injection. An attacker can exploit this vulnerability to execute arbitrary SQL commands, potentially gaining unauthorized access to the database, extracting sensitive information, modifying data, or even causing data loss. The severity of this vulnerability is rated as HIGH with a CVSS score of 8.8.

How To Fix

Latest published version: 6.1.0 as of 23 Oct 2026

pip install --upgrade "apache-superset==6.1.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.3.1

This is the first release that contains the fix.

pip install --upgrade "apache-superset==1.3.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround is to disable the ENABLE_TEMPLATE_PROCESSING feature in the Apache Superset configuration. By disabling this feature, the risk of SQL injection attacks is mitigated. However, it is strongly advised to upgrade to the fixed version as soon as possible to ensure comprehensive security.

Conclusion

The SQL injection vulnerability in Apache Superset (CVE-2021-41971) can be exploited by authenticated users to execute arbitrary SQL commands. This can lead to unauthorized access, data manipulation, or data loss. It is crucial to upgrade to Apache Superset version 1.3.1 or later to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for apache-superset →

Share this vulnerability

FAQ

Apache Superset is an open-source data exploration and visualization platform that allows users to create interactive dashboards, charts, and reports.

SQL injection is a code injection technique where an attacker inserts malicious SQL statements into an application's database query. This can lead to unauthorized access, data manipulation, or data loss.

This vulnerability allows authenticated users to execute arbitrary SQL commands, potentially compromising the database, extracting sensitive information, or modifying data.

The severity of this vulnerability is rated as HIGH with a CVSS score of 8.8.

To fix this vulnerability, it is recommended to upgrade to Apache Superset version 1.3.1 or later. This version includes the necessary fixes to prevent SQL injection attacks.

Related vulnerabilities

Recent vulnerabilities recorded for apache-superset.

How To Fix

Latest published version: 6.1.0 as of 23 Oct 2026

pip install --upgrade "apache-superset==6.1.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.3.1

This is the first release that contains the fix.

pip install --upgrade "apache-superset==1.3.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback