{"id":"GHSA-vh2g-6c4x-5hmp","summary":"Path traversal and code execution via prototype vulnerability","details":"### Impact\nDue to the use of the [object destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/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.\n\n### Patches\nPatched in v2.8.7\n\n### Workarounds\nSite maintainers can cherry pick ec58700f6dff8e5b4af1544f6205ec362b593092 into their codebase to patch the exploit.","aliases":["CVE-2023-26045"],"modified":"2026-09-10T03:49:57.256523361Z","published":"2023-07-25T13:54:13Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-07-25T13:54:13Z","nvd_published_at":"2023-07-24T22:15:10Z","cwe_ids":["CWE-22"],"severity":"CRITICAL"},"references":[{"type":"WEB","url":"https://github.com/NodeBB/NodeBB/security/advisories/GHSA-vh2g-6c4x-5hmp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26045"},{"type":"WEB","url":"https://github.com/NodeBB/NodeBB/commit/ec58700f6dff8e5b4af1544f6205ec362b593092"},{"type":"PACKAGE","url":"https://github.com/NodeBB/NodeBB"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20230831-0004"}],"affected":[{"package":{"name":"nodebb","ecosystem":"npm","purl":"pkg:npm/nodebb"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.5.0"},{"fixed":"2.8.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-vh2g-6c4x-5hmp/GHSA-vh2g-6c4x-5hmp.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}