GHSA-43ff-rr26-8hx4

Suggest an improvement
Source
https://github.com/advisories/GHSA-43ff-rr26-8hx4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-43ff-rr26-8hx4/GHSA-43ff-rr26-8hx4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-43ff-rr26-8hx4
Aliases
Published
2025-10-15T20:09:53Z
Modified
2025-10-16T08:12:47.192382Z
Severity
  • 7.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
OpenSearch Data Prepper plugins trust all SSL certificates by default
Details

Impact

The OpenSearch sink and source plugins in Data Prepper are configured to trust all SSL certificates by default when no certificate path was provided, making connections vulnerable to man-in-the-middle attacks.

Prior to this fix, the OpenSearch sink and source plugins would automatically use a trust all SSL strategy when connecting to OpenSearch clusters if no certificate path was explicitly configured. This behavior bypassed SSL certificate validation, potentially allowing attackers to intercept and modify data in transit through man-in-the-middle attacks.

The vulnerability affects connections to OpenSearch when the cert parameter is not explicitly provided.

Patches

Data Prepper 2.12.2

Workarounds

If you cannot immediately upgrade to the fixed version, you can implement the following workaround.

OpenSearch sink

Add the cert parameter to your OpenSearch sink configuration with the path to your cluster's CA certificate. The following example shows how to accomplish this.

sink:
  - opensearch:
      hosts: ["https://your-opensearch-cluster:9200"]
      cert: /path/to/your/ca-certificate.pem

OpenSearch source

Add the cert parameter to your OpenSearch sink configuration with the path to your cluster's CA certificate. The following example shows how to accomplish this.

sink:
  - opensearch:
      hosts: ["https://your-opensearch-cluster:9200"]
      connection:
        cert: /path/to/your/ca-certificate.pem

References

N/A

Database specific
{
    "github_reviewed_at": "2025-10-15T20:09:53Z",
    "github_reviewed": true,
    "severity": "HIGH",
    "nvd_published_at": "2025-10-15T18:15:39Z",
    "cwe_ids": [
        "CWE-295"
    ]
}
References

Affected packages

Maven / org.opensearch.dataprepper.plugins:opensearch

Package

Name
org.opensearch.dataprepper.plugins:opensearch
View open source insights on deps.dev
Purl
pkg:maven/org.opensearch.dataprepper.plugins/opensearch

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.12.2

Affected versions

2.*

2.12.0
2.12.1