{"id":"CVE-2022-31183","aliases":["CVE-2022-31183","GHSA-2cpx-6pqp-wf35"],"related":[],"kind":"vulnerability","state":"published","title":"mTLS client verification is skipped in fs2 on Node.js","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen 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.\n\nThe vulnerability is limited to:\n1. `fs2-io` running on Node.js. The JVM TLS implementation is completely independent.\n2. `TLSSocket`s in server-mode. Client-mode `TLSSocket`s are implemented via a different API.\n3. mTLS as enabled via `requestCert = true` in `TLSParameters`. The default setting is `false` for server-mode `TLSSocket`s.\n\nIt was introduced with the initial Node.js implementation of fs2-io in v3.1.0.\n\n### Patches\n\nA 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.\n\n### Workarounds\n\nIf using an unpatched version on Node.js, do not use a server-mode `TLSSocket` with `requestCert = true` to establish a mTLS connection.\n\n### References\n- https://github.com/nodejs/node/issues/43994\n- https://www.cloudflare.com/learning/access-management/what-is-mutual-tls/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* [Open an issue.](https://github.com/typelevel/fs2/issues/new/choose)\n* Contact the [Typelevel Security Team](https://github.com/typelevel/.github/blob/main/SECURITY.md).","format":"markdown","source":"ghsa"},{"lang":"es","text":"fs2 es una librería de E/S de composición para Scala. Cuando es establecido un \"TLSSocket\" en modo servidor usando \"fs2-io\" en Node.js, el parámetro \"requestCert = true\" es ignorado, la verificación del certificado del compañero es omitida, y la conexión procede. La vulnerabilidad es limitada a: 1. \"fs2-io\" corriendo en Node.js. La implementación de TLS en la JVM es completamente independiente. 2. \"TLSSocket\"s en modo servidor. Los \"TLSSocket\" en modo cliente es implementado por medio de una API diferente. 3. mTLS está habilitado por medio de \"requestCert = true\" en \"TLSParameters\". La configuración por defecto es \"false\" para los \"TLSSocket\" en modo servidor. Es introducida con la implementación inicial de Node.js de fs2-io en la versión 3.1.0. Ha sido publicado un parche en la versión 3.2.11. Es respetado el parámetro requestCert = true y es verificado el certificado del compañero. Si la verificación falla, es lanzada una SSLException. Si es usada una versión sin parche en Node.js, no debe usarse un TLSSocket en modo servidor con requestCert = true para establecer una conexión mTLS","source":"nvd"}],"published":"2022-07-29T22:24:10.000Z","modified":"2026-06-17T04:44:58.777Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-295"],"affected":[{"ranges":[{"version":">= 3.1.0, < 3.2.11","status":"affected"}],"vendor":"typelevel","product":"fs2","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.1.0","status":"affected","fixed":"3.2.11"}],"ecosystem":"Maven","package":"co.fs2:fs2-io","purl":"pkg:maven/co.fs2/fs2-io","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1.0","status":"affected","fixed":"3.2.11"}],"ecosystem":"Maven","package":"co.fs2:fs2-io_2.12","purl":"pkg:maven/co.fs2/fs2-io_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1.0","status":"affected","fixed":"3.2.11"}],"ecosystem":"Maven","package":"co.fs2:fs2-io_3","purl":"pkg:maven/co.fs2/fs2-io_3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1.0","status":"affected","fixed":"3.2.11"}],"ecosystem":"Maven","package":"co.fs2:fs2-io_2.13","purl":"pkg:maven/co.fs2/fs2-io_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1.0","status":"affected","fixed":"3.2.11"}],"ecosystem":"Maven","package":"co.fs2:fs2-io_sjs1_2.13","purl":"pkg:maven/co.fs2/fs2-io_sjs1_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1.0","status":"affected","fixed":"3.2.11"}],"ecosystem":"Maven","package":"co.fs2:fs2-io_sjs1_3","purl":"pkg:maven/co.fs2/fs2-io_sjs1_3","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.1.0","fixed":"3.2.11"}],"vendor":"typelevel","product":"fs2","cpe":"cpe:2.3:a:typelevel:fs2:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/typelevel/fs2/security/advisories/GHSA-2cpx-6pqp-wf35","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nodejs/node/issues/43994","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/typelevel/fs2/commit/659824395826a314e0a4331535dbf1ef8bef8207","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31183","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/typelevel/fs2/commit/19ce392e8093d9571387dbd78e159e655a85aeea","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/typelevel/fs2","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/typelevel/fs2/releases/tag/v3.2.11","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-04-22T15:37:11.291Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31183","url":"https://www.cve.org/CVERecord?id=CVE-2022-31183","licence":"CVE Terms of Use","modified":"2025-04-22T17:45:55.210Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2cpx-6pqp-wf35","url":"https://github.com/advisories/GHSA-2cpx-6pqp-wf35","licence":"CC-BY-4.0","modified":"2025-09-30T17:37:53.151Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31183","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31183","licence":"Public domain","modified":"2026-06-17T04:44:58.777Z"}],"updatedAt":"2026-11-25T22:58:13.345Z","epss":{"score":0.0083,"percentile":0.58667,"date":"2026-12-01T12:00:22.000Z"}}