NodeBB vulnerable to path traversal and code execution via prototype vulnerability
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-26045
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:06 UTC · Revision 1
Source evidence
NodeBB vulnerable to path traversal and code execution via prototype vulnerability
core-osv · Original sourcePublished 24 Jul 2023, 21:08 UTC
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.
osv:CVE-2023-26045
Complete source record
{
"id": "e6bb000df0349ae95a84f4d8afb8c8802135e5fb9af72b2fc35950be9d9ee2cf",
"url": "https://osv.dev/vulnerability/CVE-2023-26045",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "NodeBB vulnerable to path traversal and code execution via prototype vulnerability",
"summary": "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.",
"evidence": "osv:CVE-2023-26045",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2023-26045",
"aliases": [
"CVE-2023-26045",
"GHSA-vh2g-6c4x-5hmp"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nodebb/nodebb",
"type": "GIT",
"events": [
{
"introduced": "c3e19005f6b18bfee734c9c17be3e7377d3e4208"
},
{
"fixed": "6976925943ff12eedf34c543623872c4ed143e9e"
},
{
"fixed": "ec58700f6dff8e5b4af1544f6205ec362b593092"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nodebb:nodebb:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "2.5.0"
},
{
"fixed": "2.8.7"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "ec58700f6dff8e5b4af1544f6205ec362b593092"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-26045.json"
}
}
],
"modified": "2026-10-28T02:30:22.232563105Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26045.json",
"https://github.com/NodeBB/NodeBB/security/advisories/GHSA-vh2g-6c4x-5hmp",
"https://nvd.nist.gov/vuln/detail/CVE-2023-26045",
"https://security.netapp.com/advisory/ntap-20230831-0004/",
"https://github.com/NodeBB/NodeBB/commit/ec58700f6dff8e5b4af1544f6205ec362b593092"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26045.json"
}
},
"related_cves": [
{
"value": "CVE-2023-26045",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488082,
"published_at": "2023-07-24T21:08:47.413+00:00"
}