CVE-2025-23061

Critical

Description

Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.

SeverityCritical
CVSS9.0
Exploit probability—
ProductMongoose
PublishedJan 15, 2025
First seenJan 15, 2025

How to fix

Update
  • mongoosejs mongoose6.13.6, 7.8.4, 8.9.5 or later
  • mongoose8.9.5, 7.8.4, 6.13.6 or later

Affected products

ProductAffected versionsFixed in
mongoosejs mongoosev < 6.13.6, 7.0.0 ≤ v < 7.8.4, 8.0.0 ≤ v < 8.9.56.13.6, 7.8.4, 8.9.5
mongoosenpm8.0.0-rc0 ≤ v < 8.9.5, 7.0.0-rc0 ≤ v < 7.8.4, v < 6.13.68.9.5, 7.8.4, 6.13.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-23061 · Mongoose · Dark Radar