Vulnerabilities in pkg:maven/co.fs2/fs2-io_sjs1_3
PACKAGECVE-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.
pkg:maven/co.fs2/fs2-io_sjs1_3
Vulnerability advisories affecting package pkg:maven/co.fs2/fs2-io_sjs1_3. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2cpx-6pqp-wf35 | CVE-2022-31183 | CRITICAL | fs2-io skips mTLS client verification |
CVE-2022-31183 at a Glance
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).
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.
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io</artifactId>
<version>3.2.11</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.12</artifactId>
<version>3.2.11</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_3</artifactId>
<version>3.2.11</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.13</artifactId>
<version>3.2.11</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_sjs1_2.13</artifactId>
<version>3.2.11</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_sjs1_3</artifactId>
<version>3.2.11</version>
</dependency>
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
CVE-2022-31183 Affected Fs2 io Versions
6 component(s)| 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?
Which Fs2 io versions are affected?
What version fixes CVE-2022-31183?
Is fs2-io affected?
Is fs2-io_2.12 affected?
What is the CVSS score of CVE-2022-31183?
What CWE is associated with CVE-2022-31183?
How can I check Maven dependencies for CVE-2022-31183?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}