All reports
Critical

Mongoose search injection vulnerability

Affected versions

Affected versions
< 6.13.6
Fixed version
6.13.6
Affected versions
>= 8.0.0-rc0, < 8.9.5
Fixed version
8.9.5
Affected versions
>= 7.0.0-rc0, < 7.8.4
Fixed version
7.8.4

Exploitation

CVE-2025-23061

Probability of exploitation in the next 30 days: 7.24%

FIRST EPSS · 2026-11-21

Description

Mongoose versions prior to 8.9.5, 7.8.4, and 6.13.6 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.

NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.

Links

Credits

  • skrtheboss