CVE-2025-27888 Apache Druid: Server-Side Request Forgery and Cross-Site Scripting

Medium 5.8 Published Updated

Authenticated attackers can exploit the management proxy to perform SSRF, XSS, or open redirects, potentially leading to code execution or security bypasses.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-27888?

CVE-2025-27888 is a medium-severity server-side request forgery vulnerability in Apache Druid, published on 20 Mar 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Severity: medium (5.8) / important

Server-Side Request Forgery (SSRF), Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Apache Druid.

This issue affects all previous Druid versions.

When using the Druid management proxy, a request that has a specially crafted URL could be used to redirect the request to an arbitrary server instead. This has the potential for XSS or XSRF. The user is required to be authenticated for this exploit. The management proxy is enabled in Druid's out-of-box configuration. It may be disabled to mitigate this vulnerability. If the management proxy is disabled, some web console features will not work properly, but core functionality is unaffected.

Users are recommended to upgrade to Druid 31.0.2 or Druid 32.0.1, which fixes the issue.

Weakness: CWE-918, CWE-79, CWE-601

Which versions are affected by CVE-2025-27888?

4 open source packages ship an affected version, including org.apache.druid:druid. It affects 1 product.

PackageAffectedFixed in
org.apache.druid:druid MavenAll versions31.0.2
org.apache.druid:druid MavenAll versions31.0.2
org.apache.druid:druid MavenFrom 32.0.032.0.1
org.apache.druid:druid MavenFrom 32.0.032.0.1

Products include Apache Druid.

How do I fix CVE-2025-27888?

Upgrade org.apache.druid:druid to a fixed version for your release line: 31.0.2 or 32.0.1.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2025-27888 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27888 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-2xcr-p767-f3rv.

Is CVE-2025-27888 in your software?

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

Check your SBOMs for free