CVE-2021-44791 Reflected XSS on certain HTTP endpoints
Attackers can execute arbitrary scripts in victim browsers via reflected XSS in Apache Druid, potentially leading to session hijacking or data theft.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-44791?
CVE-2021-44791 is a medium-severity cross-site scripting vulnerability in Apache Druid, published on 7 Jul 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
In Apache Druid 0.22.1 and earlier, certain specially-crafted links result in unescaped URL parameters being sent back in HTML responses. This makes it possible to execute reflected XSS attacks.
Weakness: CWE-79
Which versions are affected by CVE-2021-44791?
2 open source packages ship an affected version, including org.apache.druid:druid. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.druid:druid Maven | All versions | 0.23.0 |
org.apache.druid:druid Maven | All versions | 0.23.0 |
Products include Apache Druid.
How do I fix CVE-2021-44791?
Upgrade org.apache.druid:druid to 0.23.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-44791 being exploited?
There is no known exploitation of CVE-2021-44791 in the wild and no public exploit code.
Other vulnerabilities in Apache Druid
- CVE-2026-23906 Apache Druid: Authentication Bypass via LDAP Anonymous Bind
- CVE-2025-59390 Apache Druid: Kerberos authenticaton chooses a cryptographically unsecure secret if not configured explicitly.
- CVE-2021-26919 Apache Druid Authenticated users can execute arbitrary code from malicious MySQL database systems.
- CVE-2021-25646 Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.
- CVE-2024-45537 Apache Druid: Users can provide MySQL JDBC properties not on allow list
Sources
Also known as GHSA-8rmv-98m4-g5c6.