{"id":"GHSA-wx69-rvg3-x7fc","summary":"XSS via prototype pollution in NodeBB ","details":"### Impact\nA prototype pollution vulnerability in the uploader module allowed a malicious user to inject arbitrary data (i.e. javascript) into the DOM, theoretically allowing for an account takeover when used in conjunction with a path traversal vulnerability disclosed at the same time as this report.\n\n### Patches\nThe vulnerability has been patched as of v1.18.5.\n\n### Workarounds\nCherry-pick commit hash 1783f918bc19568f421473824461ff2ed7755e4c to receive this patch in lieu of a full upgrade.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@nodebb.org](mailto:security@nodebb.org)\n","aliases":["CVE-2021-43787"],"modified":"2026-07-08T06:28:24.545510977Z","published":"2021-11-30T22:21:01Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-11-30T14:35:09Z","nvd_published_at":"2021-11-29T20:15:00Z","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/NodeBB/NodeBB/security/advisories/GHSA-wx69-rvg3-x7fc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43787"},{"type":"WEB","url":"https://github.com/NodeBB/NodeBB/commit/1783f918bc19568f421473824461ff2ed7755e4c"},{"type":"WEB","url":"https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot"},{"type":"PACKAGE","url":"https://github.com/NodeBB/NodeBB"},{"type":"WEB","url":"https://github.com/NodeBB/NodeBB/releases/tag/v1.18.5"}],"affected":[{"package":{"name":"nodebb","ecosystem":"npm","purl":"pkg:npm/nodebb"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.15.0"},{"fixed":"1.18.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-wx69-rvg3-x7fc/GHSA-wx69-rvg3-x7fc.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"}]}