# CVE-2021-43787: XSS via prototype pollution

- Severity: Critical 9.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.32%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-29T19:30:11.000Z
- Modified: 2026-07-08T06:28:24.545Z
- Also known as: GHSA-wx69-rvg3-x7fc
- Weaknesses: CWE-79, CWE-1321
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- NodeBB NodeBB: >= 1.15.5, < 1.18.5; from 1.15.5 up to 1.18.4
- nodebb (npm): from 1.15.0 before 1.18.5

## Every score

- GitHub_M: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot/> (exploit, third-party-advisory)
- <https://github.com/NodeBB/NodeBB/security/advisories/GHSA-wx69-rvg3-x7fc> (patch, third-party-advisory, web)
- <https://github.com/NodeBB/NodeBB/commit/1783f918bc19568f421473824461ff2ed7755e4c> (patch, third-party-advisory, web)
- <https://github.com/NodeBB/NodeBB/releases/tag/v1.18.5> (patch, release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43787> (advisory)
- <https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot> (web)
- <https://github.com/NodeBB/NodeBB> (package)

## Sources

- CVE List: [CVE-2021-43787](https://www.cve.org/CVERecord?id=CVE-2021-43787), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-wx69-rvg3-x7fc](https://github.com/advisories/GHSA-wx69-rvg3-x7fc), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-43787](https://nvd.nist.gov/vuln/detail/CVE-2021-43787), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43787 · Whole record: https://cve.day/CVE-2021-43787.json · Rebuilt by cve.day 2026-11-25T22:24:36.116Z
