CVE-2023-26045CWE-22

NodeBB vulnerable to path traversal and code execution via prototype vulnerability

Critical · published July 24, 2023

CVSS v3.1
10.0
EPSS
1%
Percentile
63.4
In the wild
Unconfirmed
What it is

🔥 A crafty payload could exploit your NodeBB forum, leading to arbitrary code execution straight from the local disk! Think of it like a sneaky delivery service that can open any package and replace the contents — if they know the right address, they can run any JavaScript code they want. Just as you’d want a secure lock on your front door, you need safeguards in your software! If left unpatched, an attacker could hijack your NodeBB installation and execute malicious scripts, potentially leading to data theft, unauthorized access, or a complete takeover of your forum. It's an absolute nightmare scenario for site maintainers and forum users alike!

Put simply

Think of it like a sneaky delivery service that can open any package and replace the contents — if they know the right address, they can run any JavaScript code they want. Just as you’d want a secure lock on your front door, you need safeguards in your software! This vulnerability resides in NodeBB versions 2.5.0 to 2.8.6, where an object destructuring assignment, combined with a path traversal flaw, allows attackers to invoke user export logic and execute arbitrary JavaScript files on the local filesystem.

What to do

If left unpatched, an attacker could hijack your NodeBB installation and execute malicious scripts, potentially leading to data theft, unauthorized access, or a complete takeover of your forum. It's an absolute nightmare scenario for site maintainers and forum users alike! Immediately upgrade your NodeBB instance to version 2.8.7 to close this critical exploit. If you can’t upgrade right away, consider cherry-picking the fix into your codebase as a temporary measure until you can fully patch. You've got this! With the right steps, you can secure your forum and keep it safe from these devastating exploits. 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01029 · 63.4th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2023-07-24T21:08Z
EPSS history
Timeline
  • 24 JUL 21:08Z
    NodeBB vulnerable to path traversal and code execution via prototype vulnerability
    cvelistv5