{"id":"CVE-2022-31183","published":"2022-08-01T19:50:11Z","modified":"2025-04-22T17:45:55Z","title":"mTLS client verification is skipped in fs2 on Node.js","vendor":"typelevel","product":"fs2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0083,"percentile":0.58444,"provenance":"source"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://github.com/typelevel/fs2/security/advisories/GHSA-2cpx-6pqp-wf35","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nodejs/node/issues/43994","tags":["x_refsource_MISC"]},{"url":"https://github.com/typelevel/fs2/commit/659824395826a314e0a4331535dbf1ef8bef8207","tags":["x_refsource_MISC"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":11.69},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"typelevel","affectedVersions":[{"vendor":"typelevel","product":"fs2","versions":[">= 3.1.0, < 3.2.11"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-22T15:37:11.291758Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"co.fs2:fs2-io","vulnerableRanges":[">=3.1.0, <3.2.11"],"patched":["3.2.11"],"from":["GHSA-2cpx-6pqp-wf35"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.12","vulnerableRanges":[">=3.1.0, <3.2.11"],"patched":["3.2.11"],"from":["GHSA-2cpx-6pqp-wf35"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_3","vulnerableRanges":[">=3.1.0, <3.2.11"],"patched":["3.2.11"],"from":["GHSA-2cpx-6pqp-wf35"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.13","vulnerableRanges":[">=3.1.0, <3.2.11"],"patched":["3.2.11"],"from":["GHSA-2cpx-6pqp-wf35"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_sjs1_2.13","vulnerableRanges":[">=3.1.0, <3.2.11"],"patched":["3.2.11"],"from":["GHSA-2cpx-6pqp-wf35"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_sjs1_3","vulnerableRanges":[">=3.1.0, <3.2.11"],"patched":["3.2.11"],"from":["GHSA-2cpx-6pqp-wf35"],"provenance":"source"}],"summary":{"text":"The flaw is in fs2-io, the TLS networking component of the fs2 streaming I/O library for Scala, specifically when it runs on Node.js and sets up a server-mode TLSSocket. An attacker can connect to such a server and be accepted despite not presenting a valid client certificate, because the requestCert = true setting is ignored and peer certificate verification is skipped; this requires only network access and no authentication or user interaction, and applies only when mTLS was enabled via requestCert = true, since the default is false.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:28Z"},"euvd":{"id":"EUVD-2022-6207","exploited":false,"provenance":"source"}}