CVE-2023-32695
Insufficient validation when decoding a Socket.IO packet
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
7.3
Insufficient validation when decoding a Socket.IO packet
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.
- Record
CVE-2023-32695- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20
- Updated
- 2026-11-02
EUVDEUVD-2023-1528
7.3
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.
- Record
EUVD-2023-1528- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-cqmj-92xf-r6r9
6.9
Insufficient validation when decoding a Socket.IO packet
Impact
A specially crafted Socket.IO packet can trigger an uncaught exception on the Socket.IO server, thus killing the Node.js process.
TypeError: Cannot convert object to primitive value
at Socket.emit (node:events:507:25)
at .../node_modules/socket.io/lib/socket.js:531:14
Patches
A fix has been released today (2023/05/22):
- https://github.com/socketio/socket.io-parser/commit/3b78117bf6ba7e99d7a5cfc1ba54d0477554a7f3, included in
[email protected] - https://github.com/socketio/socket.io-parser/commit/2dc3c92622dad113b8676be06f23b1ed46b02ced, included in
[email protected]
Another fix has been released for the 3.3.x branch:
- https://github.com/socketio/socket.io-parser/commit/ee006607495eca4ec7262ad080dd3a91439a5ba4, included in `[email protected]
| socket.io version | socket.io-parser version | Needs minor update? |
|---------------------|---------------------------------------------------------------------------------------------------------|--------------------------------------|
| 4.5.2...latest | ~4.2.0 (ref) | npm audit fix should be sufficient |
| 4.1.3...4.5.1 | ~4.1.1 (ref) | Please upgrade to [email protected] |
| 3.0.5...4.1.2 | ~4.0.3 (ref) | Please upgrade to [email protected] |
| 3.0.0...3.0.4 | ~4.0.1 (ref) | Please upgrade to [email protected] |
| 2.3.0...2.5.0 | ~3.4.0 (ref) | npm audit fix should be sufficient |
Workarounds
There is no known workaround except upgrading to a safe version.
For more information
If you have any questions or comments about this advisory:
- Open a discussion here
Thanks to @rafax00 for the responsible disclosure.
- Record
GHSA-cqmj-92xf-r6r9- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N - CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20, CWE-754
- Updated
- 2026-11-02
NVD
7.3
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.
- Record
CVE-2023-32695- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-20, CWE-754
- Updated
- 2026-11-02
OSV
7.3
Insufficient validation when decoding a Socket.IO packet
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.
- Record
CVE-2023-32695- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-32695
7.5
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.
- Record
DEBIAN-CVE-2023-32695- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVGHSA-cqmj-92xf-r6r9
6.9
Insufficient validation when decoding a Socket.IO packet
Impact
A specially crafted Socket.IO packet can trigger an uncaught exception on the Socket.IO server, thus killing the Node.js process.
TypeError: Cannot convert object to primitive value
at Socket.emit (node:events:507:25)
at .../node_modules/socket.io/lib/socket.js:531:14
Patches
A fix has been released today (2023/05/22):
- https://github.com/socketio/socket.io-parser/commit/3b78117bf6ba7e99d7a5cfc1ba54d0477554a7f3, included in
[email protected] - https://github.com/socketio/socket.io-parser/commit/2dc3c92622dad113b8676be06f23b1ed46b02ced, included in
[email protected]
Another fix has been released for the 3.3.x branch:
- https://github.com/socketio/socket.io-parser/commit/ee006607495eca4ec7262ad080dd3a91439a5ba4, included in `[email protected]
| socket.io version | socket.io-parser version | Needs minor update? |
|---------------------|---------------------------------------------------------------------------------------------------------|--------------------------------------|
| 4.5.2...latest | ~4.2.0 (ref) | npm audit fix should be sufficient |
| 4.1.3...4.5.1 | ~4.1.1 (ref) | Please upgrade to [email protected] |
| 3.0.5...4.1.2 | ~4.0.3 (ref) | Please upgrade to [email protected] |
| 3.0.0...3.0.4 | ~4.0.1 (ref) | Please upgrade to [email protected] |
| 2.3.0...2.5.0 | ~3.4.0 (ref) | npm audit fix should be sufficient |
Workarounds
There is no known workaround except upgrading to a safe version.
For more information
If you have any questions or comments about this advisory:
- Open a discussion here
Thanks to @rafax00 for the responsible disclosure.
- Record
GHSA-cqmj-92xf-r6r9- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N - CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-20, CWE-754
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-32695
7.3
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.
- Record
UBUNTU-CVE-2023-32695- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1772496675 No score
TuxCare security update for socket.io-parser (3 CVEs)
TuxCare rebuilt socket.io-parser to address 3 CVEs. Fixed in 3.2.0-tuxcare.1.
- Record
CLSA-2026-1772496675- Updated
- 2026-11-02
OSVCLSA-2026-1791899634 No score
TuxCare security update for socket.io-parser (5 CVEs)
TuxCare rebuilt socket.io-parser to address 5 CVEs. Fixed in 2.3.1-tuxcare.1.
- Record
CLSA-2026-1791899634- Updated
- 2026-11-02
OSVCLSA-2026-1792599106 No score
TuxCare security update for socket.io-parser (5 CVEs)
TuxCare rebuilt socket.io-parser to address 5 CVEs. Fixed in 2.2.2-tuxcare.1.
- Record
CLSA-2026-1792599106- Updated
- 2026-11-02
OSVCLSA-2026-1792665531 No score
TuxCare security update for socket.io-parser (5 CVEs)
TuxCare rebuilt socket.io-parser to address 5 CVEs. Fixed in 2.2.4-tuxcare.1.
- Record
CLSA-2026-1792665531- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2023-32695 No score
CVE-2023-32695 in @rootio/socket.io-parser - Patched by Root
Root has patched CVE-2023-32695 in the @rootio/socket.io-parser package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2023-32695- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
socket.io-parsernpm |
3.4.0 up to 3.4.3 | 3.4.3 |
socket.io-parsernpm |
4.0.4 up to 4.2.3 | 4.2.3 |
socket.io-parsernpm |
before 3.3.4 | 3.3.4 |
socket.io-parserTuxCare:npm From an advisory covering 3 CVEs |
3.2.0-tuxcare.0 up to 3.2.0-tuxcare.1, plus listed versions 3.2.0 |
3.2.0-tuxcare.1 |
socket.io-parserTuxCare:npm From an advisory covering 5 CVEs |
2.3.1-tuxcare.0 up to 2.3.1-tuxcare.1, plus listed versions 2.3.1 |
2.3.1-tuxcare.1 |
socket.io-parserTuxCare:npm From an advisory covering 5 CVEs |
2.2.2-tuxcare.0 up to 2.2.2-tuxcare.1, plus listed versions 2.2.2 |
2.2.2-tuxcare.1 |
socket.io-parserTuxCare:npm From an advisory covering 5 CVEs |
2.2.4-tuxcare.0 up to 2.2.4-tuxcare.1, plus listed versions 2.2.4 |
2.2.4-tuxcare.1 |
node-socket.io-parserDebian:12 |
before 4.2.1+~3.1.0-2 | 4.2.1+~3.1.0-2 |
node-socket.io-parserDebian:13 |
before 4.2.1+~3.1.0-2 | 4.2.1+~3.1.0-2 |
node-socket.io-parserDebian:14 |
before 4.2.1+~3.1.0-2 | 4.2.1+~3.1.0-2 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
@rootio/socket.io-parserRoot:npm |
before 4.0.5-root.io.1 | 4.0.5-root.io.14.0.5-root.io.2 |
socket.io-parserRoot:npm |
before 4.0.5-aikido.2 | 4.0.5-aikido.2 |
node-socket.io-parserUbuntu:18.04:LTS |
All versions, plus listed versions 2.3.1-1 |
None known |
node-socket.io-parserUbuntu:20.04:LTS |
All versions, plus listed versions 3.3.0-13.4.0-1 |
None known |
node-socket.io-parserUbuntu:22.04:LTS |
All versions, plus listed versions 4.0.2-14.1.1+~3.0.0-14.1.2+~3.0.0-1 |
None known |
node-socket.io-parserUbuntu:24.04:LTS |
All versions, plus listed versions 4.2.1+~3.1.0-3 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-32695 is a high vulnerability (CVSS 7.3) in Socket Socket.io-parser, published May 23, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.06%, the 64th percentile. Fixed in socket.io-parser 3.4.3.
References
github.com/socketio/socket.io-parser/security/advisories/GHSA-cqmj-92xf-r6r9
github.com/socketio/socket.io-parser/commit/2dc3c92622dad113b8676be06f23b1ed46b02ced
github.com/socketio/socket.io-parser/commit/3b78117bf6ba7e99d7a5cfc1ba54d0477554a7f3
github.com/socketio/socket.io-parser/releases/tag/4.2.3
github.com/socketio/socket.io-parser/commit/1c220ddbf45ea4b44bc8dbf6f9ae245f672ba1b9
nvd.nist.gov/vuln/detail/CVE-2023-32695
Show 7 moreShow less
github.com/socketio/socket.io-parser/commit/ee006607495eca4ec7262ad080dd3a91439a5ba4
github.com/advisories/GHSA-cqmj-92xf-r6r9
github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32695.json
security-tracker.debian.org/tracker/CVE-2023-32695
github.com/socketio/socket.io-parser
ubuntu.com/security/CVE-2023-32695
cve.org/CVERecord?id=CVE-2023-32695