CVE-2022-31183
mTLS client verification is skipped in fs2 on Node.js
Also known as GHSA-2cpx-6pqp-wf35
Mitigation
- Upgrade co.fs2:fs2-io to 3.2.11 or later.
- Upgrade co.fs2:fs2-io_2.12 to 3.2.11 or later.
- Upgrade co.fs2:fs2-io_3 to 3.2.11 or later.
- Upgrade co.fs2:fs2-io_2.13 to 3.2.11 or later.
- Upgrade co.fs2:fs2-io_sjs1_2.13 to 3.2.11 or later.
- Upgrade co.fs2:fs2-io_sjs1_3 to 3.2.11 or later.
Who should check
- Projects that depend on Maven package co.fs2:fs2-io (>= 3.1.0, < 3.2.11)
- Projects that depend on Maven package co.fs2:fs2-io_2.12 (>= 3.1.0, < 3.2.11)
- Projects that depend on Maven package co.fs2:fs2-io_3 (>= 3.1.0, < 3.2.11)
- Projects that depend on Maven package co.fs2:fs2-io_2.13 (>= 3.1.0, < 3.2.11)
- Projects that depend on Maven package co.fs2:fs2-io_sjs1_2.13 (>= 3.1.0, < 3.2.11)
- Projects that depend on Maven package co.fs2:fs2-io_sjs1_3 (>= 3.1.0, < 3.2.11)
- Anyone running typelevel fs2 >= 3.1.0, < 3.2.11
Vulnerability facts
- Affected
- co.fs2:fs2-io >= 3.1.0, < 3.2.11; co.fs2:fs2-io_2.12 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_3 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_2.13 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_sjs1_2.13 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_sjs1_3 >= 3.1.0, < 3.2.11
- Fixed in
- 3.2.11
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.84% chance of exploitation in 30 days (percentile 55, 2026-11-26)
- CWE
- CWE-295
- Modified
Description
fs2 is a compositional, streaming I/O library for Scala. 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 3.1.0. 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. If using an unpatched version on Node.js, do not use a server-mode TLSSocket with requestCert = true to establish a mTLS connection.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven co.fs2:fs2-io | >= 3.1.0, < 3.2.11 | 3.2.11 | osv |
| Maven co.fs2:fs2-io_2.12 | >= 3.1.0, < 3.2.11 | 3.2.11 | osv |
| Maven co.fs2:fs2-io_3 | >= 3.1.0, < 3.2.11 | 3.2.11 | osv |
| Maven co.fs2:fs2-io_2.13 | >= 3.1.0, < 3.2.11 | 3.2.11 | osv |
| Maven co.fs2:fs2-io_sjs1_2.13 | >= 3.1.0, < 3.2.11 | 3.2.11 | osv |
| Maven co.fs2:fs2-io_sjs1_3 | >= 3.1.0, < 3.2.11 | 3.2.11 | osv |
| typelevel fs2 | >= 3.1.0, < 3.2.11 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-31183. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-31183.md Affected: co.fs2:fs2-io >= 3.1.0, < 3.2.11; co.fs2:fs2-io_2.12 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_3 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_2.13 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_sjs1_2.13 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_sjs1_3 >= 3.1.0, < 3.2.11 Fixed in: 3.2.11 Steps: 1. Search this machine and project for co.fs2:fs2-io (Maven), co.fs2:fs2-io_2.12 (Maven), co.fs2:fs2-io_3 (Maven), co.fs2:fs2-io_2.13 (Maven), co.fs2:fs2-io_sjs1_2.13 (Maven), co.fs2:fs2-io_sjs1_3 (Maven): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
FAQ
Is CVE-2022-31183 being exploited?
There is no confirmed exploitation: CVE-2022-31183 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.84% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-31183?
Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-31183?
co.fs2:fs2-io >= 3.1.0, < 3.2.11; co.fs2:fs2-io_2.12 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_3 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_2.13 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_sjs1_2.13 >= 3.1.0, < 3.2.11; co.fs2:fs2-io_sjs1_3 >= 3.1.0, < 3.2.11.
Is there a fix for CVE-2022-31183?
Yes. Fixed in 3.2.11. Upgrade co.fs2:fs2-io to 3.2.11 or later. Upgrade co.fs2:fs2-io_2.12 to 3.2.11 or later. Upgrade co.fs2:fs2-io_3 to 3.2.11 or later. Upgrade co.fs2:fs2-io_2.13 to 3.2.11 or later. Upgrade co.fs2:fs2-io_sjs1_2.13 to 3.2.11 or later. Upgrade co.fs2:fs2-io_sjs1_3 to 3.2.11 or later.
How do I check if I'm affected by CVE-2022-31183?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.