First published: Wed Jan 15 2025(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
npm/mongoose | <6.13.6 | 6.13.6 |
npm/mongoose | >=7.0.0-rc0<7.8.4 | 7.8.4 |
npm/mongoose | >=8.0.0-rc0<8.9.5 | 8.9.5 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-23061 is considered a significant vulnerability due to its potential for search injection.
To fix CVE-2025-23061, upgrade Mongoose to version 8.9.5 or higher, or to version 7.8.4 and above.
Affected versions of Mongoose include any version before 8.9.5, 7.8.4, and 6.13.6.
CVE-2025-23061 is caused by Mongoose improperly using a nested $where filter with a populate() match.
Yes, CVE-2025-23061 exists due to an incomplete fix for CVE-2024-53900.