# CVE-2021-43787: XSS via prototype pollution

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.0
- **CVSS:** 9.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.32% (percentile 71, 2026-11-26)
- **CWE:** CWE-79, CWE-1321
- **Aliases:** GHSA-wx69-rvg3-x7fc
- **Published:** 2021-11-29T19:30:11.000Z
- **Modified:** 2026-07-08T06:28:24.545Z

## Who should check

- Projects that depend on npm package nodebb (\>= 1.15.0, \< 1.18.5)
- Anyone running NodeBB \>= 1.15.5, \< 1.18.5

## 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.

## Affected and fixed versions

- npm `nodebb`: affected \>= 1.15.0, \< 1.18.5; fixed 1.18.5 (osv)
- NodeBB: \>= 1.15.5, \< 1.18.5 (cvelist)

## Mitigation

- Upgrade nodebb to 1.18.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-43787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-43787.md
Affected: nodebb >= 1.15.0, < 1.18.5
Fixed in: 1.18.5

Steps:
1. Search this machine and project for nodebb (npm), NodeBB: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-43787 being exploited?

There is no confirmed exploitation: CVE-2021-43787 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-43787?

Critical: CVSS 9.0 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2021-43787?

nodebb \>= 1.15.0, \< 1.18.5.

### Is there a fix for CVE-2021-43787?

Yes. Fixed in 1.18.5. Upgrade nodebb to 1.18.5 or later.

### How do I check if I'm affected by CVE-2021-43787?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/NodeBB/NodeBB/security/advisories/GHSA-wx69-rvg3-x7fc>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-43787>
- patch: <https://github.com/NodeBB/NodeBB/commit/1783f918bc19568f421473824461ff2ed7755e4c>
- patch: <https://github.com/NodeBB/NodeBB/releases/tag/v1.18.5>
- exploit: <https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot/>
- other: <https://blog.sonarsource.com/nodebb-remote-code-execution-with-one-shot>
- other: <https://github.com/NodeBB/NodeBB>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-43787>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-wx69-rvg3-x7fc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-43787> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-43787>
