CVE-2024-53900Mongoosejs Mongoose
Critical 9.1 No auth needed
Follow: this CVE · Mongoosejs · Mongoosejs Mongoose We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Dec 2, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
What to do
- Apply the vendor's security update for Mongoose.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mongoose |
≥ 8.0.0-rc0 < 8.8.3 |
8.8.3 |
npm install mongoose@8.8.3 |
| npm | mongoose |
≥ 7.0.0-rc0 < 7.8.3 |
7.8.3 |
npm install mongoose@7.8.3 |
| npm | mongoose |
≥ 6.0.0-rc0 < 6.13.5 |
6.13.5 |
npm install mongoose@6.13.5 |
| npm | mongoose |
≥ 3.6.0-rc0 < 5.13.23 |
5.13.23 |
npm install mongoose@5.13.23 |
Per OSV / GitHub Advisories (GHSA-m7xq-9374-9rvx). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mongoosejs | mongoose | < 6.13.5 |
| mongoosejs | mongoose | ≥ 7.0.1 < 7.8.3 |
| mongoosejs | mongoose | ≥ 8.0.1 < 8.8.3 |
| mongoosejs | mongoose | 7.0.0 |
| mongoosejs | mongoose | 8.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes
- github.com Patch
- github.com Release Notes
- github.com Vendor Advisory
- www.npmjs.com Product