9.0Critical

CVE-2025-23061

mongoosejs Mongoose Published: (1 year ago)

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.

Weakness (CWE): CWE-94

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
mongoosejs Mongoose 6.0.0 – < 6.13.6, 7.0.0 – < 7.8.4, 8.0.0 – < 8.9.5

References and patches

CPE matches (NVD) (3)

  • cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* < 6.13.6
  • cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* ≥ 7.0.0 < 7.8.4
  • cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* ≥ 8.0.0 < 8.9.5