CVE-2025-27888: Druid Cross-Site Scripting Vulnerability
MODERATECVE-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
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).
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.
<dependency>
<groupId>org.apache.druid</groupId>
<artifactId>druid</artifactId>
<version>31.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.druid</groupId>
<artifactId>druid</artifactId>
<version>32.0.1</version>
</dependency>
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
CVE-2025-27888 Affected Druid Versions
2 component(s)| 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?
Which Druid versions are affected?
What version fixes CVE-2025-27888?
Is druid affected?
What is the CVSS score of CVE-2025-27888?
What CWE is associated with CVE-2025-27888?
How can I check Maven dependencies for CVE-2025-27888?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}