Improper Neutralization of Special Elements in Data Query Logic Affecting mongoose package, versions <8.8.3


Severity

Recommended
0.0
high
0
10

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

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 Learn

Learn about Improper Neutralization of Special Elements in Data Query Logic vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MONGOOSE-8446504
  • published3 Dec 2024
  • disclosed2 Dec 2024
  • creditUnknown

Introduced: 2 Dec 2024

NewCVE-2024-53900  (opens in a new tab)
CWE-943  (opens in a new tab)

How to fix?

Upgrade mongoose to version 8.8.3 or higher.

Overview

mongoose is a Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Data Query Logic due to the improper handling of $where in match queries. An attacker can manipulate search queries to inject malicious code.

References

CVSS Scores

version 4.0
version 3.1