Improper Validation of Certificate with Host Mismatch Affecting org.java-websocket:java-websocket package, versions [,1.5.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.14% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGJAVAWEBSOCKET-568685
  • published8 May 2020
  • disclosed7 May 2020
  • creditPeter Stöckli

Introduced: 7 May 2020

CVE-2020-11050  (opens in a new tab)
CWE-297  (opens in a new tab)

How to fix?

Upgrade org.java-websocket:Java-WebSocket to version 1.5.0 or higher.

Overview

org.java-websocket:Java-WebSocket is a barebones WebSocket server and client implementation written in 100% Java.

Affected versions of this package are vulnerable to Improper Validation of Certificate with Host Mismatch. 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.

CVSS Scores

version 3.1