CVE-2021-43787: NodeBB XSS via prototype pollution in uploader

CVE-2021-43787 · Severity: low · CVSS 3.1 · Published 2021-11-30

NodeBB is a community forum and discussion platform. A prototype pollution vulnerability in the file uploader module allows a malicious user to inject malicious JavaScript code into the web page, potentially leading to account takeover when combined with other vulnerabilities. This could allow an attacker to compromise user accounts and access sensitive forum data.

Technologies: NodeBB. Vendors: NodeBB.

Quick answers

Is CVE-2021-43787 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2021-43787 being exploited in the wild.
How severe is CVE-2021-43787?
Low severity, with a CVSS score of 3.1, published 30 November 2021.
Which products and versions are affected?
NodeBB 1.15.5 through 1.18.4.
Is there a fix for CVE-2021-43787?
A patch was published on 2021-11-30: Fixed in NodeBB v1.18.5 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2021-43787 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2021-43787?
Check whether you run NodeBB at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A prototype pollution vulnerability in NodeBB's uploader module allows an authenticated attacker to inject arbitrary data (including JavaScript) into the DOM via improper handling of object prototype attributes. The vulnerability requires user interaction (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes). When leveraged alongside a path traversal vulnerability, this can escalate to account takeover. The flaw was patched in version 1.18.5; affected versions are 1.15.5 through 1.18.4. Patches are available via upgrade or cherry-picking commit 1783f918bc19568f421473824461ff2ed7755e4c.

Affected products

  • NodeBB NodeBB 1.15.5 through 1.18.4

Identifiers

  • CVE-2021-43787
  • GHSA-wx69-rvg3-x7fc

Timeline

  • 2021-11-30: disclosed: Advisory GHSA-wx69-rvg3-x7fc published
  • 2021-11-30: patched: Fixed in NodeBB v1.18.5

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.