Home / NodeBB / NodeBB / CVE-2022-36045
CVE-2022-36045: is it exploited, and which versions of NodeBB are affected and fixed?
CVE-2022-36045 is a weak randomness vulnerability in NodeBB. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: nodebb before 1.19.8 and nodebb from 2.0.0 before 2.0.1 (GitHub advisory GHSA-p4cc-w597-6cpm). Fixed in 1.19.8 and 2.0.1 (GitHub advisory GHSA-p4cc-w597-6cpm). Severity: Critical (9.0, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:45 UTC.
What is CVE-2022-36045?
Account takeover via cryptographically weak PRNG in NodeBB Forum
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.
From the CVE record by GitHub_M, last updated April 23, 2025, 17:47 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| NodeBB | NodeBB | < 1.19.8 = 2.0.0 |
As the CVE record by GitHub_M states it, last updated April 23, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | nodebb | < 1.19.8 | 1.19.8 | GHSA-p4cc-w597-6cpm |
| npm | nodebb | >= 2.0.0, < 2.0.1 | 2.0.1 | GHSA-p4cc-w597-6cpm |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 8, 2022. Summary: Cryptographically weak PRNG in `utils.generateUUID`.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nodebb | nodebb | before 1.19.8 | application |
| nodebb | nodebb | 2.0.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:52 UTC.
How severe is CVE-2022-36045?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H | GitHub_M |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-36045 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, April 23, 2025)
- EPSS
- 1.39% probability of exploitation activity in the next 30 days, percentile 73.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-330 Use of Insufficiently Random Values
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Where are the vendor advisories and references?
- https://github.com/NodeBB/NodeBB/security/advisories/GHSA-p4cc-w597-6cpm x_refsource_CONFIRM
- https://github.com/NodeBB/NodeBB/commit/81e3c1ba488d03371a5ce8d0ebb5c5803026e0f9 x_refsource_MISC
- https://github.com/NodeBB/NodeBB/commit/e802fab87f94a13f397f04cfe6068f2f7ddf7888 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 15, 2022
- Published
- August 31, 2022, 15:10 UTC
- CVE record updated
- April 23, 2025, 17:47 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:52 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:45 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect NodeBB?
- Nov 25, 2026CVE-2026-137084 NodeBB: execution After Redirect (EAR)
- Oct 30, 2026CVE-2026-120007 NodeBB: authorization bypass through a user-controlled key (IDOR)
- Aug 13, 2026CVE-2026-73038 NodeBB: cross-site scripting (XSS)
- Jul 1, 2026CVE-2026-58593 NodeBB: data authenticity not verified
- Aug 27, 2025CVE-2025-50979 Nodebb: SQL injection
- Apr 18, 2025CVE-2025-29513 Nodebb: cross-site scripting (XSS)
- Apr 18, 2025CVE-2025-29512 Nodebb: cross-site scripting (XSS)
- Jan 24, 2025CVE-2024-57041 Nodebb: cross-site scripting (XSS)
Questions about CVE-2022-36045
Is CVE-2022-36045 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 1.39% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of NodeBB are affected by CVE-2022-36045?
nodebb before 1.19.8 and nodebb from 2.0.0 before 2.0.1, per the GitHub advisory GHSA-p4cc-w597-6cpm. The tables above give every range the sources list.
Which version fixes CVE-2022-36045?
1.19.8 and 2.0.1, per the GitHub advisory GHSA-p4cc-w597-6cpm. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-36045?
Critical (9.0, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-36045?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.