Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nodebb
  4. ›
  5. CVE-2023-26045

CVE-2023-26045: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

July 24, 2023 (updated August 31, 2023)

NodeBB is Node.js based forum software. Starting in version 2.5.0 and prior to version 2.8.7, due to the use of the object destructuring assignment syntax in the user export code path, combined with a path traversal vulnerability, a specially crafted payload could invoke the user export logic to arbitrarily execute javascript files on the local disk. This issue is patched in version 2.8.7. As a workaround, site maintainers can cherry pick the fix into their codebase to patch the exploit.

References

  • github.com/NodeBB/NodeBB/commit/ec58700f6dff8e5b4af1544f6205ec362b593092
  • github.com/NodeBB/NodeBB/security/advisories/GHSA-vh2g-6c4x-5hmp
  • nvd.nist.gov/vuln/detail/CVE-2023-26045

Code Behaviors & Features

Detect and mitigate CVE-2023-26045 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.5.0 before 2.8.7

Fixed versions

  • 2.8.7

Solution

Upgrade to version 2.8.7 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/nodebb/CVE-2023-26045.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:19 +0000.