CVE-2021-44791 Reflected XSS on certain HTTP endpoints

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
org.apache.druid:druid MavenAll versions0.23.0
org.apache.druid:druid MavenAll versions0.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.

Sources

Also known as GHSA-8rmv-98m4-g5c6.

Is CVE-2021-44791 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free