GHSA-m7xq-9374-9rvxHighCVSS 9.8

Mongoose search injection vulnerability

Published
December 2, 2024
Last Modified
February 4, 2026

🔗 CVE IDs covered (1)

📋 Description

Mongoose versions prior to 8.8.3, 7.8.3, 6.13.5, and 5.13.23 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.

🎯 Affected products4

  • npm/mongoose:>= 8.0.0-rc0, < 8.8.3
  • npm/mongoose:>= 7.0.0-rc0, < 7.8.3
  • npm/mongoose:>= 6.0.0-rc0, < 6.13.5
  • npm/mongoose:>= 3.6.0-rc0, < 5.13.23

🔗 References (13)