Loading...
Skip to main content

CVE-2022-31183 — Vulnerability in co.fs2:fs2-io_3 — CVE Details

CRITICAL

fs2-io skips mTLS client verification

Published July 29, 2022Updated September 30, 2025Source: osv

Summary

### Impact When establishing a server-mode `TLSSocket` using `fs2-io` on Node.js, the parameter `requestCert = true` is ignored, peer certificate verification is skipped, and the connection proceeds. The vulnerability is limited to: 1. `fs2-io` running on Node.js. The JVM TLS implementation is completely independent. 2. `TLSSocket`s in server-mode. Client-mode `TLSSocket`s are implemented via a different API. 3. mTLS as enabled via `requestCert = true` in `TLSParameters`. The default setting is `false` for server-mode `TLSSocket`s. It was introduced with the initial Node.js implementation of fs2-io in v3.1.0. ### Patches A patch is released in v3.2.11. The `requestCert = true` parameter is respected and the peer certificate is verified. If verification fails, a `SSLException` is raised. ### Workarounds If using an unpatched version on Node.js, do not use a server-mode `TLSSocket` with `requestCert = true` to establish a mTLS connection. ### References - https://github.com/nodejs/node/issues/43994 - https://www.cloudflare.com/learning/access-management/what-is-mutual-tls/ ### For more information If you have any questions or comments about this advisory: * [Open an issue.](https://github.com/typelevel/fs2/issues/new/choose) * Contact the [Typelevel Security Team](https://github.com/typelevel/.github/blob/main/SECURITY.md).

Advisory Timeline

  • First published July 29, 2022 (1536 days ago).
  • Last revised September 30, 2025 — 1159 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update co.fs2:fs2-io_3 to 3.2.11 or later
<!-- Update pom.xml dependency version to 3.2.11 for co.fs2:fs2-io_3 -->
Maven
Update co.fs2:fs2-io_2.12 to 3.2.11 or later
<!-- Update pom.xml dependency version to 3.2.11 for co.fs2:fs2-io_2.12 -->
Maven
Update co.fs2:fs2-io to 3.2.11 or later
<!-- Update pom.xml dependency version to 3.2.11 for co.fs2:fs2-io -->
Maven
Update co.fs2:fs2-io_sjs1_2.13 to 3.2.11 or later
<!-- Update pom.xml dependency version to 3.2.11 for co.fs2:fs2-io_sjs1_2.13 -->
Maven
Update co.fs2:fs2-io_2.13 to 3.2.11 or later
<!-- Update pom.xml dependency version to 3.2.11 for co.fs2:fs2-io_2.13 -->
Maven
Update co.fs2:fs2-io_sjs1_3 to 3.2.11 or later
<!-- Update pom.xml dependency version to 3.2.11 for co.fs2:fs2-io_sjs1_3 -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: maven (6).

PackageEcosystemAffectedFixed In
co.fs2:fs2-io_3
maven
3.1-10-500b366, 3.1-10-abf6bb0, 3.1-10-f3d23ce, 3.1-11-28617f6 (+143 more)3.2.11
co.fs2:fs2-io_2.12
maven
3.1-10-500b366, 3.1-10-abf6bb0, 3.1-10-f3d23ce, 3.1-11-28617f6 (+143 more)3.2.11
co.fs2:fs2-io
maven
All versions3.2.11
co.fs2:fs2-io_sjs1_2.13
maven
3.1-10-500b366, 3.1-10-abf6bb0, 3.1-10-f3d23ce, 3.1-11-28617f6 (+143 more)3.2.11
co.fs2:fs2-io_2.13
maven
3.1-10-500b366, 3.1-10-abf6bb0, 3.1-10-f3d23ce, 3.1-11-28617f6 (+143 more)3.2.11
co.fs2:fs2-io_sjs1_3
maven
3.1-10-500b366, 3.1-10-abf6bb0, 3.1-10-f3d23ce, 3.1-11-28617f6 (+143 more)3.2.11

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-295
    Improper Certificate ValidationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2022-31183?
fs2-io skips mTLS client verification This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2022-31183?
CVE-2022-31183 affects co.fs2:fs2-io_3, co.fs2:fs2-io_2.12 and co.fs2:fs2-io (and 3 more). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31183 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-2cpx-6pqp-wf35

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies