Cross-site Scripting (XSS) Affecting mongodb package, versions [3.6.0,3.6.20)[4.0.0,4.0.21)[4.2.0,4.2.10)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MONGODB-2371273
  • published26 Jan 2022
  • disclosed23 Jul 2021
  • creditUnknown

Introduced: 23 Jul 2021

CVE-2021-20333  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade mongodb to version 3.6.20, 4.0.21, 4.2.10 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). Sending specially crafted commands to a MongoDB Server may result in artificial log entries being generated or for log entries to be split. This issue affects MongoDB Server v3.6 versions prior to 3.6.20; MongoDB Server v4.0 versions prior to 4.0.21; MongoDB Server v4.2 versions prior to 4.2.10;

References

CVSS Scores

version 3.1