Skip to content

CVE-2025-23061 Mongoose search injection vulnerability

CriticalCVSS 9.8 EPSS 7.2% Scanner template
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
mongoosejs mongoose < 6.13.6; >= 6.0.0, < 6.13.6; >= 7.0.0, < 7.8.4; >= 8.0.0, < 8.9.5 6.13.6, 7.8.4, 8.9.5 Fixed
npm mongoose(npm) < 6.13.6; >= 7.0.0-rc0, < 7.8.4; >= 8.0.0-rc0, < 8.9.5 6.13.6, 7.8.4, 8.9.5 Fixed

Affected products

ProductAffected versionsFixed in
npm mongoose(npm) >= 8.0.0-rc0, < 8.9.5 8.9.5
npm mongoose(npm) >= 7.0.0-rc0, < 7.8.4 7.8.4
npm mongoose(npm) < 6.13.6 6.13.6
mongoosejs mongoose >= 6.0.0, < 6.13.6 6.13.6
mongoosejs mongoose >= 7.0.0, < 7.8.4 7.8.4
mongoosejs mongoose >= 8.0.0, < 8.9.5 8.9.5
mongoosejs mongoose < 6.13.6 6.13.6

References