Loading HuntDB...

GHSA-gw55-jm4h-x339

GitHub Security Advisory

Improper Validation of Certificate with Host Mismatch in Java-WebSocket

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

The Java-WebSocket Client does not perform hostname verification.

- This means that SSL certificates of other hosts are accepted as long as they are trusted. To exploit this vulnerability an attacker has to perform a man-in-the-middle (MITM) attack between a Java application using the Java-WebSocket Client and an WebSocket server it's connecting to.
- TLS normally protects users and systems against MITM attacks, it cannot if certificates from other trusted hosts are accepted by the client.

For more information see: CWE-297: Improper Validation of Certificate with Host Mismatch - https://cwe.mitre.org/data/definitions/297.html

## Important note

The OWASP Dependency-Check (https://jeremylong.github.io/DependencyCheck/index.html) may report that a dependency of your project is affected by this security vulnerability, but you don't use this lib.
This is caused by the fuzzy search in the OWASP implementation.
Check out this issue (https://github.com/TooTallNate/Java-WebSocket/issues/1019#issuecomment-628507934) for more information and a way to suppress the warning.

Affected Packages

Maven org.java-websocket:Java-WebSocket
Affected versions: 0 (fixed in 1.5.0)

Related CVEs

Key Information

GHSA ID
GHSA-gw55-jm4h-x339
Published
May 8, 2020 6:54 PM
Last Modified
October 8, 2021 7:56 PM
CVSS Score
7.5 /10
Primary Ecosystem
Maven
Primary Package
org.java-websocket:Java-WebSocket
GitHub Reviewed
✓ Yes

Dataset

Last updated: June 17, 2025 6:25 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.