Skip to main content
← All vulnerabilities
CVE-2025-23061GHSA-VG7J-7CWX-8WGWBIT-MONGOOSE-2025-23061

Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.13.6, 7.8.4, 8.9.5
2 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • mongoosejs Mongoose

    From 6.0.0 · fixed in 6.13.6; From 7.0.0 · fixed in 7.8.4; From 8.0.0 · fixed in 8.9.5

  • mongoosenpm

    From 8.0.0-rc0 · fixed in 8.9.5

  • mongoosenpm

    From 7.0.0-rc0 · fixed in 7.8.4

  • mongoosenpm

    fixed in 6.13.6

References 7

npmjs.com

GitHub · Automattic/mongoose

GitHub · projectdiscovery/nuclei-templates

GitHub · amikanev/CVE-2025-23061-LAB

GitHub · open-flaw/CVE-2025-23061