CVE-2025-23061
A public proof of concept exists; no exploitation attested.
- Published2025-01-15
- Fixed in8.9.5 · 7.8.4 · 6.13.6
- WeaknessCWE-94
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2025-01-1505:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.x | ≥ 8.0.0, < 8.9.5 | 8.9.5 | NVD · OSV |
| 8.x | ≥ 8.0.0-rc0, < 8.9.5 | 8.9.5 | OSV |
| 7.x | ≥ 7.0.0, < 7.8.4 | 7.8.4 | NVD · OSV |
| 7.x | ≥ 7.0.0-rc0, < 7.8.4 | 7.8.4 | OSV |
| 6.13 | < 6.13.6 | 6.13.6 | NVD · OSV |
| 6.x | ≥ 6.0.0, < 6.13.6 | 6.13.6 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As mitre, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- mongoosejs Mongooseother versions: unknownAffected
- ≥ 6.0.0, < 6.13.6fixed in 6.13.6semver
- ≥ 7.0.0, < 7.8.4fixed in 7.8.4semver
- ≥ 8.0.0, < 8.9.5fixed in 8.9.5semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-01-15
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @rootio/mongooseRoot:npmall versions · fixed in 5.13.23-root.io.1
- @rootio/mongooseRoot:npmall versions · fixed in 6.9.1-root.io.2
- @rootio/mongooseRoot:npmall versions · fixed in 6.9.1-root.io.3
- @rootio/mongooseRoot:npmall versions · fixed in 6.9.1-root.io.4
- mongooseTuxCare:npmfrom 5.13.23-tuxcare.0 · fixed in 5.13.23-tuxcare.1
- mongooseTuxCare:npmfrom 6.12.2-tuxcare.0 · fixed in 6.12.2-tuxcare.2
- mongooseRoot:npmall versions · fixed in 5.13.23-aikido.1
- mongooseRoot:npmall versions · fixed in 6.9.1-aikido.2
2 more package ranges on OSV.dev
Fix
- Update Mongoosejs mongoose to 8.9.5 · 7.8.4 · 6.13.6
Advisories and patches
- github.comRelease Notes
- github.comPatch
- github.comRelease Notes
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub2 repositories, unverifiedknown since 2026-11-01open-flaw/CVE-2025-23061amikanev/CVE-2025-23061-LAB
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-01-15
- CNACVSS 3.19known since 2026-10-23
- NVDCVSS 3.19.8read 2026-10-23
- CNAweakness (CWE)CWE-94known since 2026-10-23
- FIRST EPSSEPSS score7.2 %2026-11-18
- PoC-in-GitHubproof of concept2known since 2026-11-01
- ProjectDiscoverydetectionread 2026-11-19
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2025-01-16
Identifiers
- BIT-mongoose-2025-23061same flawBitnami · Apache-2.0
- EUVD-2025-0106same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-vg7j-7cwx-8wgwsame flawGitHub Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2025-01-15
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-vg7j-7cwx-8wgw
Frequently asked questions
What is CVE-2025-23061?
Is CVE-2025-23061 actively exploited?
What is the CVSS score for CVE-2025-23061?
Running mongoose? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2019-17426same product
- CVE-2026-125117same productMongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state
- CVE-2026-125120same productMongoose: sanitizeFilter not applied on countDocuments
- CVE-2026-125119same productMongoose: Connection-level sanitizeFilter not applied
- CVE-2026-73562same product
- CVE-2026-125118same productMongoose: Prototype pollution via Schema.prototype.virtual()
- CVE-2026-125116same productMongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections
- CVE-2026-42334same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-vg7j-7cwx-8wgw
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- CISA Vulnrichment · CC0-1.0