CVE-2025-27888: Druid Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-2xcr-p767-f3rv
CVSS 5.4
CWE-601 CWE-79 CWE-918
Published
Advisory Summary

CVE-2025-27888 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Druid libraries in the Maven ecosystem. The issue involves apache druid vulnerable to server-side request forgery, cross-site scripting, open redirect. Remediation is available by upgrading affected packages to version 31.0.2, 32.0.1.

CVE-2025-27888 at a Glance

CVE Identifier CVE-2025-27888
GHSA Identifier GHSA-2xcr-p767-f3rv
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Druid
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-27888

To remediate this vulnerability, upgrade all affected Druid dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.druid:druid fixed: 31.0.2
<dependency>
    <groupId>org.apache.druid</groupId>
    <artifactId>druid</artifactId>
    <version>31.0.2</version>
</dependency>
org.apache.druid:druid fixed: 32.0.1
<dependency>
    <groupId>org.apache.druid</groupId>
    <artifactId>druid</artifactId>
    <version>32.0.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.druid

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-27888, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.druid

Analyze the terminal output to locate any version of Druid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 31.0.2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.druid command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Druid, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-27888 Affected Druid Versions

2 component(s)
Fixed Versions:
31.0.232.0.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.druid:druid
Maven
< 31.0.2
31.0.2
org.apache.druid:druid
Maven
≥ 32.0.0
< 32.0.1
All 1 versions
32.0.0
32.0.1

References

Frequently Asked Questions

What is CVE-2025-27888?
CVE-2025-27888 is a security vulnerability in Druid involving Apache Druid vulnerable to Server-Side Request Forgery, Cross-site Scripting, Open Redirect under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Druid versions are affected?
Affected versions include releases prior to 31.0.2, 32.0.1 across affected packages: org.apache.druid:druid.
What version fixes CVE-2025-27888?
Upgrading to 31.0.2, 32.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is druid affected?
Yes, org.apache.druid:druid is affected in releases prior to 31.0.2, 32.0.1. Upgrade your dependency to 31.0.2, 32.0.1 or later.
What is the CVSS score of CVE-2025-27888?
CVE-2025-27888 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2025-27888?
CVE-2025-27888 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Maven dependencies for CVE-2025-27888?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.druid'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2xcr-p767-f3rv",
  "modified" : "2025-07-15T00:32:25Z",
  "published" : "2025-03-20T12:32:53Z",
  "aliases" : [ "CVE-2025-27888" ],
  "summary" : "Apache Druid vulnerable to Server-Side Request Forgery, Cross-site Scripting, Open Redirect",
  "details" : "Severity: medium (5.8) / important\n\nServer-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.\n\nThis issue affects all previous Druid versions.\n\nWhen 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.\n\nUsers are recommended to upgrade to Druid 31.0.2 or Druid 32.0.1, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.druid:druid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "31.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.druid:druid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "32.0.0"
      }, {
        "fixed" : "32.0.1"
      } ]
    } ],
    "versions" : [ "32.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27888"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/druid"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/druid/releases/tag/druid-31.0.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/druid/releases/tag/druid-32.0.1"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/c0qo989pwtrqkjv6xfr0c30dnjq8vf39"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/03/19/7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601", "CWE-79", "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-21T22:46:39Z",
    "nvd_published_at" : "2025-03-20T12:15:14Z"
  }
}