Improper Handling of Unexpected Data Type Affecting nodebb package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.12% (48th percentile)

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 IDSNYK-JS-NODEBB-5925614
  • published29 Sept 2023
  • disclosed29 Sept 2023
  • creditNgo Wei Lin

Introduced: 29 Sep 2023

CVE-2023-30591  (opens in a new tab)
CWE-241  (opens in a new tab)

How 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().

CVSS Scores

version 3.1