Security mailing lists by PureSourceCode

CVE-2025-23061

CRITICAL 9.8CVSS 3.1

Mongoose search injection vulnerability

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.

Published
15 Jan 2025
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Analyzed
Weakness
CWE-94
Also known as
BIT-mongoose-2025-23061GHSA-vg7j-7cwx-8wgw
Sources
NVDJSONOSV GHSA-vg7j-7cwx-8wgwJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD cve@mitre.org (Secondary) CVSS 3.1 CRITICAL 9.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD mongoosejs mongoose
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
< 6.13.6 6.13.6
NVD mongoosejs mongoose
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
>= 7.0.0, < 7.8.4 7.8.4
NVD mongoosejs mongoose
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
>= 8.0.0, < 8.9.5 8.9.5
OSV npm mongoose >= 8.0.0-rc0, < 8.9.5 8.9.5
OSV npm mongoose >= 7.0.0-rc0, < 7.8.4 7.8.4
OSV npm mongoose < 6.13.6 6.13.6

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 15 Jan 2025)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Jan 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.