All reports
High

Mongoose search injection vulnerability

Affected versions

Affected versions
>= 3.6.0-rc0, < 5.13.23
Fixed version
5.13.23
Affected versions
>= 8.0.0-rc0, < 8.8.3
Fixed version
8.8.3
Affected versions
>= 7.0.0-rc0, < 7.8.3
Fixed version
7.8.3
Affected versions
>= 6.0.0-rc0, < 6.13.5
Fixed version
6.13.5

Exploitation

CVE-2024-53900

Probability of exploitation in the next 30 days: 3.98%

FIRST EPSS · 2026-11-19

Description

Mongoose versions prior to 8.8.3, 7.8.3, 6.13.5, and 5.13.23 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.

Links

Credits

  • balles
  • skrtheboss
  • ljharb