CVE-2022-31183 fs2
| Affected software | fs2 |
|---|---|
| Severity | 9.8 Critical CVSS 3.1 2 scores |
| Fixed in | 3.2.11 |
| Weakness | CWE-295 |
| Published | 1 Aug 2022 |
| Updated | 17 Jun 2026 |
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. TLSSockets in server-mode. Client-mode TLSSockets are implemented via a different API. 3. mTLS as enabled via requestCert = true in TLSParameters. The default setting is false for server-mode TLSSockets. 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.
Exploitation status
Proof of concept only
A proof of concept exists, but no reviewed exploit catalogue lists this CVE.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment exploitation: poc CISA recorded that an exploit has been demonstrated. Automatable: yes, technical impact: total.
- Indexed PoC none indexed
- EPSS 0.83% chance in 30 days
Waratek protection
Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.
A public code fix exists: typelevel/fs2 6598243.
- Protection none
- Action unverified
- Review automated Upstream data
- Record active
| Decided by | Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all |
|---|---|
| Finding | This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious. |
| Candidate fix | https://github.com/typelevel/fs2/commit/659824395826a314e0a4331535dbf1ef8bef8207 : a commit: the change itself |
CVSS
9.8 CRITICAL
v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2 metrics
CVSS
9.8 CRITICAL v3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| CVSS 3.1 | 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
NVD | Primary | published |
| CVSS 3.1 | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
security-advisories@github.com | Secondary |
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
co.fs2:fs2-io |
3.1.0 | 3.2.11 |
unbounded |
co.fs2:fs2-io_2.12 |
3.1.0 | 3.2.11 |
unbounded |
co.fs2:fs2-io_3 |
3.1.0 | 3.2.11 |
unbounded |
co.fs2:fs2-io_2.13 |
3.1.0 | 3.2.11 |
unbounded |
co.fs2:fs2-io_sjs1_2.13 |
3.1.0 | 3.2.11 |
unbounded |
co.fs2:fs2-io_sjs1_3 |
3.1.0 | 3.2.11 |
unbounded |
Products and versions
7 products, 7 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| osv | co.fs2 | fs2-io | generic | ≥ 3.1.0 and < 3.2.11 |
| osv | co.fs2 | fs2-io_2.12 | generic | ≥ 3.1.0 and < 3.2.11 |
| osv | co.fs2 | fs2-io_2.13 | generic | ≥ 3.1.0 and < 3.2.11 |
| osv | co.fs2 | fs2-io_3 | generic | ≥ 3.1.0 and < 3.2.11 |
| osv | co.fs2 | fs2-io_sjs1_2.13 | generic | ≥ 3.1.0 and < 3.2.11 |
| osv | co.fs2 | fs2-io_sjs1_3 | generic | ≥ 3.1.0 and < 3.2.11 |
| nvd | typelevel | fs2 | generic | ≥ 3.1.0 and < 3.2.11 |
References
Timeline
Timeline
| Published | 2022-08-01 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |