{"id":"CVE-2021-43787","aliases":["CVE-2021-43787","GHSA-wx69-rvg3-x7fc"],"related":[],"kind":"vulnerability","state":"published","title":"XSS via prototype pollution","summary":"Nodebb is an open source Node.js based forum software. In affected versions a 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. The vulnerability has been patched as of v1.18.5. Users are advised to upgrade as soon as possible.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Nodebb is an open source Node.js based forum software. In affected versions a 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. The vulnerability has been patched as of v1.18.5. Users are advised to upgrade as soon as possible.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Nodebb es un software de foros de código abierto basado en Node.js. En las versiones afectadas, una vulnerabilidad de contaminación del prototipo en el módulo uploader permitía a un usuario malicioso inyectar datos arbitrarios (es decir, javascript) en el DOM, teóricamente permitiendo una toma de control de la cuenta cuando era usada junto con una vulnerabilidad de salto de ruta revelada al mismo tiempo que este informe. La vulnerabilidad ha sido parcheada a partir de la versión 1.18.5. Se aconseja a usuarios que actualicen lo antes posible","source":"nvd"}],"published":"2021-11-29T19:30:11.000Z","modified":"2026-07-08T06:28:24.545Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-1321"],"affected":[{"ranges":[{"version":">= 1.15.5, < 1.18.5","status":"affected"}],"vendor":"NodeBB","product":"NodeBB","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.15.0","status":"affected","fixed":"1.18.5"}],"ecosystem":"npm","package":"nodebb","purl":"pkg:npm/nodebb","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.15.5","lastAffected":"1.18.4"}],"vendor":"nodebb","product":"nodebb","cpe":"cpe:2.3:a:nodebb:nodebb:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/NodeBB/NodeBB/security/advisories/GHSA-wx69-rvg3-x7fc","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/NodeBB/NodeBB/commit/1783f918bc19568f421473824461ff2ed7755e4c","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/NodeBB/NodeBB/releases/tag/v1.18.5","tags":["patch","release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43787","tags":["advisory"],"sources":["ghsa"]},{"url":"https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/NodeBB/NodeBB","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-43787","url":"https://www.cve.org/CVERecord?id=CVE-2021-43787","licence":"CVE Terms of Use","modified":"2024-08-04T04:03:08.858Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wx69-rvg3-x7fc","url":"https://github.com/advisories/GHSA-wx69-rvg3-x7fc","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:24.545Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-43787","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43787","licence":"Public domain","modified":"2026-06-17T04:11:26.350Z"}],"updatedAt":"2026-11-25T22:24:36.116Z","epss":{"score":0.01317,"percentile":0.71634,"date":"2026-12-01T12:00:22.000Z"}}