{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.storm:storm-metrics-prometheus. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40557 in the wild and no public exploit code.","fix":"Upgrade org.apache.storm:storm-metrics-prometheus to 2.8.7 or later.","what":"CVE-2026-40557 is a medium-severity vulnerability in Apache Storm Prometheus Reporter, published on 27 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40557 and fix it if it is affected.\n\nWhat it is: CVE-2026-40557 is a medium-severity vulnerability in Apache Storm Prometheus Reporter, published on 27 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40557 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.storm:storm-metrics-prometheus (Maven): affected from 2.6.3; fixed in 2.8.7\n- org.apache.storm:storm-metrics-prometheus (Maven): affected from 2.6.3; fixed in 2.8.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40557/ (Markdown: https://insights.sbomify.com/CVE-2026-40557/index.md)","id":"CVE-2026-40557","markdown":"https://insights.sbomify.com/CVE-2026-40557/index.md","name":"CVE-2026-40557","record":{"aliases":["GHSA-82fm-wpc2-5pmp"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Storm","requires_auth":"none","summary":"Enabling TLS skip for Prometheus reporter globally disables certificate validation, allowing man-in-the-middle attacks on all cluster communications.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"storm_prometheus_reporter","vendor":"apache"}],"cvss":{"score":4.8,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"description":"Improper Certificate Validation via Global SSL Context Downgrade in Apache Storm Prometheus Reporter\n\nVersions Affected: from 2.6.3 to 2.8.6\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\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\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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Storm Prometheus Reporter vulnerable to Improper Certificate Validation via Global SSL Context Downgrade","id":"CVE-2026-40557","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Starman versions before 0.4018 for Perl allows HTTP Request Smuggling via Improper Header Precedence","id":"CVE-2026-40560"},"packages":[{"ecosystem":"Maven","fixed":["2.8.7"],"introduced":["2.6.3"],"last_affected":[],"package":"org.apache.storm:storm-metrics-prometheus","purl":null,"source":"GHSA-82fm-wpc2-5pmp"},{"ecosystem":"Maven","fixed":["2.8.7"],"introduced":["2.6.3"],"last_affected":[],"package":"org.apache.storm:storm-metrics-prometheus","purl":"pkg:maven/org.apache.storm/storm-metrics-prometheus","source":"GHSA-82fm-wpc2-5pmp"}],"prev":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-40556"},"products":["Apache Storm Prometheus Reporter"],"published":"2026-04-27","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-30","vendors":["Apache Software Foundation"]},"summary":"Enabling TLS skip for Prometheus reporter globally disables certificate validation, allowing man-in-the-middle attacks on all cluster communications.","url":"https://insights.sbomify.com/CVE-2026-40557/"}