CVE-2025-23061

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*

History

03 Oct 2025, 12:59

Type Values Removed Values Added
Summary
  • (es) Mongoose anterior a la versión 8.9.5 puede usar incorrectamente un filtro $where anidado con una coincidencia populate(), lo que provoca una inyección de búsqueda. NOTA: este problema existe debido a una corrección incompleta de CVE-2024-53900.
CPE cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
First Time Mongoosejs mongoose
Mongoosejs
References () https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md - () https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md - Release Notes
References () https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc - () https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc - Patch
References () https://github.com/Automattic/mongoose/releases/tag/8.9.5 - () https://github.com/Automattic/mongoose/releases/tag/8.9.5 - Release Notes
References () https://www.npmjs.com/package/mongoose?activeTab=versions - () https://www.npmjs.com/package/mongoose?activeTab=versions - Product

15 Jan 2025, 05:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-01-15 05:15

Updated : 2025-10-03 12:59


NVD link : CVE-2025-23061

Mitre link : CVE-2025-23061

CVE.ORG link : CVE-2025-23061


JSON object : View

Products Affected

mongoosejs

  • mongoose
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')