CVE-2023-32695 Insufficient validation when decoding a Socket.IO packet

High 7.3 Published Updated

A specially crafted Socket.IO packet causes an uncaught exception, crashing the Node.js server process.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-32695?

CVE-2023-32695 is a high-severity denial of service vulnerability in socketio socket.io-parser, published on 27 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

socket.io parser is a socket.io encoder and decoder written in JavaScript complying with version 5 of socket.io-protocol. A specially crafted Socket.IO packet can trigger an uncaught exception on the Socket.IO server, thus killing the Node.js process. A patch has been released in version 4.2.3.

Weakness: CWE-754, CWE-20

Which versions are affected by CVE-2023-32695?

6 open source packages ship an affected version, including socket.io-parser. It affects 1 product.

PackageAffectedFixed in
socket.io-parser npmAll versions3.3.4
socket.io-parser npmAll versions3.3.4
socket.io-parser npmFrom 3.4.03.4.3
socket.io-parser npmFrom 3.4.03.4.3
socket.io-parser npmFrom 4.0.44.2.3
socket.io-parser npmFrom 4.0.44.2.3

Products include Socket Socket.io-Parser.

How do I fix CVE-2023-32695?

Upgrade socket.io-parser to a fixed version for your release line: 3.3.4, 3.4.3 or 4.2.3.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-32695 being exploited?

There is no known exploitation of CVE-2023-32695 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-32695, GHSA-cqmj-92xf-r6r9, ROOT-APP-NPM-CVE-2023-32695, UBUNTU-CVE-2023-32695.

Is CVE-2023-32695 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free