Improper Certificate Validation Affecting co.fs2:fs2-io_sjs1_3 package, versions [3.1.0,3.2.11)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.35% (72nd 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-COFS2-2964207
  • published31 Jul 2022
  • disclosed29 Jul 2022
  • creditUnknown

Introduced: 29 Jul 2022

CVE-2022-31183  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade co.fs2:fs2-io_sjs1_3 to version 3.2.11 or higher.

Overview

co.fs2:fs2-io_sjs1_3 is a compositional, streaming I/O library

Affected versions of this package are vulnerable to Improper Certificate Validation in TLSContextPlatform.scala when establishing a server-mode TLSSocket. The parameter requestCert = true is ignored, and the connection proceeds without certificate validation.

NOTE:

This vulnerability is only exploitable when the following conditions are met:

  1. fs2-io is running on Node.js.

  2. The TLSSocket being established is in server-mode.

  3. The default mTLS setting requestCert = false in TLSParameters is changed to true.

CVSS Scores

version 3.1