CVE-2022-36045
NodeBB Forum Software is powered by Node.js and supports either Redis, MongoDB, or a PostgreSQL database. It utilizes web sockets for instant interactions and real-time notifications. `utils.generateUUID`, a helper function available in essentially all versions of NodeBB (as far back as v1.0.1 and potentially earlier) used a cryptographically insecure Pseudo-random number generator (`Math.random()`), which meant that a specially crafted script combined with multiple invocations of the password reset functionality could enable an attacker to correctly calculate the reset code for an account they do not have access to. This vulnerability impacts all installations of NodeBB. The vulnerability allows for an attacker to take over any account without the involvement of the victim, and as such, the remediation should be applied immediately (either via NodeBB upgrade or cherry-pick of the specific changeset. The vulnerability has been patched in version 2.x and 1.19.x. There is no known workaround, but the patch sets listed above will fully patch the vulnerability.
Scoring
- Severity
- CRITICAL
- CVSS base score
- 9
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS probability
- 0.68%
- CWE
- CWE-330, CWE-338
- Published
- 2022-08-31
- Last modified
- 2026-03-13
Affected products
- NodeBB NodeBB
- NodeBB NodeBB
Weakness type
Related vulnerabilities
- CVE-2023-22601 — InHand Networks InRouter 302, prior to version IR302 V3.5.56, and InRouter 615, prior to version InRouter6XX-S-V2.3.0.r
- CVE-2026-27755 — SODOLA SL902-SWTGW124AS <= 200.1.20 Predictable Session ID
- CVE-2026-27637 — FreeScout's Predictable Authentication Token Enables Account Takeover
- CVE-2024-36389 — MileSight DeviceHub - CWE-330 Use of Insufficiently Random Values
- CVE-2025-64097 — NervesHub has Insufficient Token Entropy that Allows Authentication Bypass via Brute Force
- CVE-2025-7783 — Usage of unsafe random function in form-data for choosing boundary
- CVE-2026-27515 — Binardat 10G08-0800GSM Network Switch Predictable Session Identifiers
- CVE-2022-26851 — Dell PowerScale OneFS, 8.2.2-9.3.x, contains a predictable file name from observable state vulnerability. An unprivilege