A stored cross-site scripting (XSS) vulnerability exists in Apache Superset before 3.0.3. An authenticated attacker with create/update permissions on charts or dashboards could store a script or add a specific HTML snippet that would act as a stored XSS.
For 2.X versions, users should change their config to include:
TALISMANCONFIG = { "contentsecuritypolicy": { "base-uri": ["'self'"], "default-src": ["'self'"], "img-src": ["'self'", "blob:", "data:"], "worker-src": ["'self'", "blob:"], "connect-src": [ "'self'", " https://api.mapbox.com" https://api.mapbox.com" ;, " https://events.mapbox.com" https://events.mapbox.com" ;, ], "object-src": "'none'", "style-src": [ "'self'", "'unsafe-inline'", ], "script-src": ["'self'", "'strict-dynamic'"], }, "contentsecuritypolicynoncein": ["script-src"], "forcehttps": False, "sessioncookiesecure": False, }
{
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "3.0.3"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"fixed": "3.0.3"
}
],
"source": "DESCRIPTION"
}
],
"cna_assigner": "apache",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49657.json",
"cwe_ids": [
"CWE-79"
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "3.0.3"
}
],
"source": "CPE_RANGE",
"cpe": "cpe:2.3:a:apache:superset:*:*:*:*:*:*:*:*"
}