Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
https://www.securityweek.com/vulnerabilities-in-mongodb-library-allow-rce-on-node-js-servers/
https://www.theregister.com/2025/02/20/mongoose_flaws_mongodb/
https://github.com/advisories/GHSA-m7xq-9374-9rvx
https://www.npmjs.com/package/mongoose?activeTab=versions
https://github.com/Automattic/mongoose/releases
https://github.com/Automattic/mongoose/commit/c9e86bff7eef477da75a29af62a06d41a835a156
https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md
Published: 2024-12-02
Updated: 2025-10-01
Base Score: 10
Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C
Severity: Critical
Base Score: 9.1
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Severity: Critical
Base Score: 8.7
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Severity: High
EPSS: 0.52176