Vulnerabilities in pkg:maven/org.apache.storm/storm-metrics-prometheus
PACKAGECVE-2026-40557 is a MODERATE (CVSS 4.8) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Storm metrics prometheus libraries in the Maven ecosystem. The issue involves apache storm prometheus reporter vulnerable to improper certificate validation via global ssl context downgrade. Remediation is available by upgrading affected packages to version 2.8.7.
pkg:maven/org.apache.storm/storm-metrics-prometheus
Vulnerability advisories affecting package pkg:maven/org.apache.storm/storm-metrics-prometheus. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-82fm-wpc2-5pmp | CVE-2026-40557 | MODERATE | Apache Storm Prometheus Reporter vulnerable to Improper Certificate Validation via Global SSL Context Downgrade |
CVE-2026-40557 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-40557
To remediate this vulnerability, upgrade all affected Storm metrics prometheus 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.storm</groupId>
<artifactId>storm-metrics-prometheus</artifactId>
<version>2.8.7</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.storm
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-40557, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.storm
Analyze the terminal output to locate any version of Storm metrics prometheus in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.7), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.storm 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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Storm metrics prometheus, 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-2026-40557 Affected Storm metrics prometheus Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.storm:storm-metrics-prometheus
|
Maven |
≥ 2.6.3
< 2.8.7
|
2.8.7
|
References
Frequently Asked Questions
What is CVE-2026-40557?
Which Storm metrics prometheus versions are affected?
What version fixes CVE-2026-40557?
Is storm-metrics-prometheus affected?
What is the CVSS score of CVE-2026-40557?
What CWE is associated with CVE-2026-40557?
How can I check Maven dependencies for CVE-2026-40557?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-82fm-wpc2-5pmp",
"modified" : "2026-05-05T22:05:03Z",
"published" : "2026-04-27T15:30:52Z",
"aliases" : [ "CVE-2026-40557" ],
"summary" : "Apache Storm Prometheus Reporter vulnerable to Improper Certificate Validation via Global SSL Context Downgrade",
"details" : "Improper Certificate Validation via Global SSL Context Downgrade in Apache Storm Prometheus Reporter\n\n\nVersions Affected: from 2.6.3 to 2.8.6\n\n\nDescription: \n\nIn production deployments where an administrator enables storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation (by default it is disabled) intending to affect only the Prometheus reporter, the undocumented global side effect creates an attack surface across every TLS-protected communication channel in the Storm daemon.\n\n\nThe PrometheusPreparableReporter class implements an INSECURE_TRUST_MANAGER that accepts all SSL certificates without validation, with empty checkClientTrusted and checkServerTrusted methods. Most critically, when the storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation configuration option is enabled (default = disabled) for HTTPS Prometheus PushGateway connections, the INSECURE_CONNECTION_FACTORY calls SSLContext.setDefault(sslContext), which globally replaces the JVM's default SSL context rather than applying the insecure context only to the Prometheus connection. This payload flows through storm.yaml configuration → PrometheusPreparableReporter.prepare() → INSECURE_CONNECTION_FACTORY → SSLContext.setDefault(), resulting in a JVM-wide TLS security downgrade. All subsequent HTTPS connections in the process - including ZooKeeper, Thrift, Netty, and UI connections - silently trust all certificates, including self-signed, expired, and attacker-generated ones, enabling man-in-the-middle interception of cluster state, topology submissions, tuple data, and administrative credentials.\n\n\n\n\nMitigation: 2.x users should upgrade to 2.8.7 if the Prometheus Metrics Reporter is used. Prometheus Metrics Reporter Users who cannot upgrade immediately should remove the storm.daemon.metrics.reporter.plugin.prometheus.skip_tls_validation: true setting from their storm.yaml configuration and instead configure a proper truststore containing the PushGateway's certificate.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.storm:storm-metrics-prometheus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.3"
}, {
"fixed" : "2.8.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40557"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/storm"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/f5bv68z1y5xstz22psjk05p3wn86knjq"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/04/25/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T22:05:03Z",
"nvd_published_at" : "2026-04-27T14:16:48Z"
}
}