Improper Handling of Unexpected Data Type Affecting nodebb package, versions *
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-NODEBB-5925614
- published 29 Sep 2023
- disclosed 29 Sep 2023
- credit Ngo Wei Lin
Introduced: 29 Sep 2023
CVE-2023-30591 Open this link in a new tabHow to fix?
A fix was pushed into the master
branch but not yet published.
Overview
nodebb is a package that utilizes web sockets for instant interactions and real-time notifications.
Affected versions of this package are vulnerable to Improper Handling of Unexpected Data Type. An unauthenticated attacker is able to send a malicious Socket.IO message to cause a NodeBB worker instance to crash. Although NodeBB’s cluster manager attempts to spawn a new replacement worker, it is possible to cause the NodeBB cluster manager to terminate after crashing NodeBB workers multiple times within a short span of time.
Note:
The vulnerability can be exploited by using an array as the Socket.IO event name to trigger a crash when invoking eventName.startsWith()
, or by using an object as the Socket.IO event name, and setting the toString
property, to trigger a crash when invoking eventName.toString()
.