# CVE-2022-31183: mTLS client verification is skipped in fs2 on Node.js

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.84% (percentile 55, 2026-11-26)
- **CWE:** CWE-295
- **Aliases:** GHSA-2cpx-6pqp-wf35
- **Published:** 2022-07-29T22:24:10.000Z
- **Modified:** 2026-06-17T04:44:58.777Z

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

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

- Maven `co.fs2:fs2-io`: affected \>= 3.1.0, \< 3.2.11; fixed 3.2.11 (osv)
- Maven `co.fs2:fs2-io_2.12`: affected \>= 3.1.0, \< 3.2.11; fixed 3.2.11 (osv)
- Maven `co.fs2:fs2-io_3`: affected \>= 3.1.0, \< 3.2.11; fixed 3.2.11 (osv)
- Maven `co.fs2:fs2-io_2.13`: affected \>= 3.1.0, \< 3.2.11; fixed 3.2.11 (osv)
- Maven `co.fs2:fs2-io_sjs1_2.13`: affected \>= 3.1.0, \< 3.2.11; fixed 3.2.11 (osv)
- Maven `co.fs2:fs2-io_sjs1_3`: affected \>= 3.1.0, \< 3.2.11; fixed 3.2.11 (osv)
- typelevel fs2: \>= 3.1.0, \< 3.2.11 (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://github.com/typelevel/fs2/security/advisories/GHSA-2cpx-6pqp-wf35>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-31183>
- patch: <https://github.com/typelevel/fs2/commit/659824395826a314e0a4331535dbf1ef8bef8207>
- patch: <https://github.com/typelevel/fs2/commit/19ce392e8093d9571387dbd78e159e655a85aeea>
- exploit: <https://github.com/nodejs/node/issues/43994>
- other: <https://github.com/typelevel/fs2>
- other: <https://github.com/typelevel/fs2/releases/tag/v3.2.11>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-31183>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2cpx-6pqp-wf35> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-31183> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-31183>
