CVE-2022-31183CWE-295

mTLS client verification is skipped in fs2 on Node.js

Critical · published August 1, 2022

CVSS v3.1
9.1
EPSS
1%
Percentile
57.1
In the wild
Unconfirmed
What it is

🚨 Skipping peer certificate verification? That's a huge no-no! In `fs2-io` on Node.js, using `requestCert = true` doesn't actually verify anything — it's like a bouncer letting anyone in without checking IDs! 🔥 Think of it like a nightclub where the bouncer is supposed to check IDs but decides to let everyone in without a second glance. While some folks might be harmless, there's a real risk of letting the wrong crowd through the door! This oversight can lead to unauthorized access, where attackers could maliciously exploit the connection, potentially intercepting sensitive data. Imagine an intruder slipping into a secure event, eavesdropping on confidential conversations — absolutely devastating!

Put simply

Think of it like a nightclub where the bouncer is supposed to check IDs but decides to let everyone in without a second glance. While some folks might be harmless, there's a real risk of letting the wrong crowd through the door! This vulnerability allows server-mode `TLSSocket`s in `fs2-io` to ignore peer certificate verification when `requestCert = true` is set, failing to enforce mTLS correctly. This issue is specific to `fs2-io` on Node.js, with client-mode sockets unaffected and the JVM implementation remaining secure.

What to do

This oversight can lead to unauthorized access, where attackers could maliciously exploit the connection, potentially intercepting sensitive data. Imagine an intruder slipping into a secure event, eavesdropping on confidential conversations — absolutely devastating! Upgrade to `fs2-io` version 3.2.11 to ensure that the `requestCert` parameter is respected, enabling proper verification of peer certificates. If you're on an unpatched version, avoid using server-mode `TLSSocket`s for mTLS connections until the upgrade is complete! You can tackle this! Follow these steps to lock down your connections and keep your data secure. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00830 · 57.1th percentile
Weakness
CWE-295 · Improper Certificate Validation
Published
2022-08-01T19:50Z
EPSS history
Timeline
  • 01 AUG 19:50Z
    mTLS client verification is skipped in fs2 on Node.js
    cvelistv5