CVE-2022-31183: Fs2 io Fs2-io Skips MTLS Client Verification Vulnerability

CRITICAL
Advisory Identifier: GHSA-2cpx-6pqp-wf35
CVSS 9.8
CWE-295
Published
Advisory Summary

CVE-2022-31183 is a CRITICAL (CVSS 9.8) fs2-io skips mtls client verification vulnerability (CWE-295: Improper Certificate Validation) affecting Fs2 io libraries in the Maven ecosystem. The issue involves fs2-io skips mtls client verification. Remediation is available by upgrading affected packages to version 3.2.11.

CVE-2022-31183 at a Glance

CVE Identifier CVE-2022-31183
GHSA Identifier GHSA-2cpx-6pqp-wf35
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Fs2 io
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2022-31183

To remediate this vulnerability, upgrade all affected Fs2 io dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

co.fs2:fs2-io fixed: 3.2.11
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io</artifactId>
    <version>3.2.11</version>
</dependency>
co.fs2:fs2-io_2.12 fixed: 3.2.11
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.12</artifactId>
    <version>3.2.11</version>
</dependency>
co.fs2:fs2-io_3 fixed: 3.2.11
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_3</artifactId>
    <version>3.2.11</version>
</dependency>
co.fs2:fs2-io_2.13 fixed: 3.2.11
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.13</artifactId>
    <version>3.2.11</version>
</dependency>
co.fs2:fs2-io_sjs1_2.13 fixed: 3.2.11
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_sjs1_2.13</artifactId>
    <version>3.2.11</version>
</dependency>
co.fs2:fs2-io_sjs1_3 fixed: 3.2.11
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_sjs1_3</artifactId>
    <version>3.2.11</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=co.fs2

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2022-31183, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=co.fs2

Analyze the terminal output to locate any version of Fs2 io in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.11), your application is affected.

Note: The mvn dependency:tree -Dincludes=co.fs2 command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Fs2 io, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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).

CVE-2022-31183 Affected Fs2 io Versions

6 component(s)
Fixed Versions:
3.2.11
Product / Package Ecosystem Affected Versions Fixed Version
co.fs2:fs2-io
Maven
≥ 3.1.0
< 3.2.11
3.2.11
co.fs2:fs2-io_2.12
Maven
≥ 3.1.0
< 3.2.11
3.2.11
co.fs2:fs2-io_3
Maven
≥ 3.1.0
< 3.2.11
3.2.11
co.fs2:fs2-io_2.13
Maven
≥ 3.1.0
< 3.2.11
3.2.11
co.fs2:fs2-io_sjs1_2.13
Maven
≥ 3.1.0
< 3.2.11
3.2.11
co.fs2:fs2-io_sjs1_3
Maven
≥ 3.1.0
< 3.2.11
3.2.11

References

Frequently Asked Questions

What is CVE-2022-31183?
CVE-2022-31183 is a security vulnerability in Fs2 io involving fs2-io skips mTLS client verification under CWE-295: Improper Certificate Validation.
Which Fs2 io versions are affected?
Affected versions include releases prior to 3.2.11 across affected packages: co.fs2:fs2-io, co.fs2:fs2-io_2.12, co.fs2:fs2-io_3, co.fs2:fs2-io_2.13, co.fs2:fs2-io_sjs1_2.13, co.fs2:fs2-io_sjs1_3.
What version fixes CVE-2022-31183?
Upgrading to 3.2.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fs2-io affected?
Yes, co.fs2:fs2-io is affected in releases prior to 3.2.11. Upgrade your dependency to 3.2.11 or later.
Is fs2-io_2.12 affected?
Yes, co.fs2:fs2-io_2.12 is affected in releases prior to 3.2.11. Upgrade your dependency to 3.2.11 or later.
What is the CVSS score of CVE-2022-31183?
CVE-2022-31183 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-31183?
CVE-2022-31183 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Maven dependencies for CVE-2022-31183?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=co.fs2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2cpx-6pqp-wf35",
  "modified" : "2025-09-30T16:56:23Z",
  "published" : "2022-07-29T22:24:10Z",
  "aliases" : [ "CVE-2022-31183" ],
  "summary" : "fs2-io skips mTLS client verification",
  "details" : "### Impact\n\nWhen 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.\n\nThe vulnerability is limited to:\n1. `fs2-io` running on Node.js. The JVM TLS implementation is completely independent.\n2. `TLSSocket`s in server-mode. Client-mode `TLSSocket`s are implemented via a different API.\n3. mTLS as enabled via `requestCert = true` in `TLSParameters`. The default setting is `false` for server-mode `TLSSocket`s.\n\nIt was introduced with the initial Node.js implementation of fs2-io in v3.1.0.\n\n### Patches\n\nA 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.\n\n### Workarounds\n\nIf using an unpatched version on Node.js, do not use a server-mode `TLSSocket` with `requestCert = true` to establish a mTLS connection.\n\n### References\n- https://github.com/nodejs/node/issues/43994\n- https://www.cloudflare.com/learning/access-management/what-is-mutual-tls/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* [Open an issue.](https://github.com/typelevel/fs2/issues/new/choose)\n* Contact the [Typelevel Security Team](https://github.com/typelevel/.github/blob/main/SECURITY.md).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "co.fs2:fs2-io"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.2.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "co.fs2:fs2-io_2.12"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.2.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "co.fs2:fs2-io_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.2.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "co.fs2:fs2-io_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.2.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "co.fs2:fs2-io_sjs1_2.13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.2.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "co.fs2:fs2-io_sjs1_3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.2.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/typelevel/fs2/security/advisories/GHSA-2cpx-6pqp-wf35"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31183"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nodejs/node/issues/43994"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/typelevel/fs2/commit/19ce392e8093d9571387dbd78e159e655a85aeea"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/typelevel/fs2/commit/659824395826a314e0a4331535dbf1ef8bef8207"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/typelevel/fs2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/typelevel/fs2/releases/tag/v3.2.11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-29T22:24:10Z",
    "nvd_published_at" : "2022-08-01T20:15:00Z"
  }
}