PYSEC-2026-1165
Apache Superset: Improper SQL authorisation, parse not checking for specific postgres functions
Quick fix
PYSEC-2026-1165 — apache-superset: upgrade to the fixed version with the command below.
pip install --upgrade 'apache-superset>=4.1.0'Details
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Apache Superset. Specifically, certain engine-specific functions are not checked, which allows attackers to bypass Apache Superset's SQL authorization. This issue is a follow-up to CVE-2024-39887 with additional disallowed PostgreSQL functions now included: query_to_xml_and_xmlschema, table_to_xml, table_to_xml_and_xmlschema.
This issue affects Apache Superset: <4.1.0.
Users are recommended to upgrade to version 4.1.0, which fixes the issue or add these Postgres functions to the config set DISALLOWED_SQL_FUNCTIONS.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 4.1.0pip install --upgrade 'apache-superset>=4.1.0'References
- https://nvd.nist.gov/vuln/detail/CVE-2024-53947[ADVISORY]
- https://github.com/apache/superset/commit/0e0028260fc8a2099250701524a489f3c9aa146f[WEB]
- https://github.com/apache/superset[PACKAGE]
- https://lists.apache.org/thread/hj3gfsjh67vqw12nlrshlsym4bkopjmn[WEB]
- https://pypi.org/project/apache-superset[PACKAGE]
- https://github.com/advisories/GHSA-92qf-8gh3-gwcm[ADVISORY]