# CVE-2025-23061: Mongoose search injection vulnerability

- Severity: Critical 9.0 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.24%, higher than 94% of CVEs (2026-12-01)
- Published: 2025-01-15T00:00:00.000Z
- Modified: 2026-09-10T16:01:43.392Z
- Also known as: GHSA-vg7j-7cwx-8wgw, BIT-MONGOOSE-2025-23061
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- mongoosejs Mongoose: from 6.0.0 before 6.13.6; from 7.0.0 before 7.8.4; from 8.0.0 before 8.9.5; before 6.13.6
- mongoose (npm): from 8.0.0-rc0 before 8.9.5; from 7.0.0-rc0 before 7.8.4; before 6.13.6
- mongoose (Bitnami): from 6.0.0 before 6.13.6; from 7.0.0 before 7.8.4; from 8.0.0 before 8.9.5

## Every score

- mitre: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://www.npmjs.com/package/mongoose?activeTab=versions> (product, web)
- <https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md> (article, release-notes, web)
- <https://github.com/Automattic/mongoose/releases/tag/8.9.5> (article, release-notes, web)
- <https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-23061> (advisory, web)
- <https://github.com/Automattic/mongoose> (package)
- <https://github.com/Automattic/mongoose/compare/6.13.5...6.13.6> (web)
- <https://github.com/Automattic/mongoose/compare/7.8.3...7.8.4> (web)
- <https://github.com/Automattic/mongoose/compare/8.9.4...8.9.5> (web)
- <https://github.com/Automattic/mongoose/releases/tag/6.13.6> (web)
- <https://github.com/Automattic/mongoose/releases/tag/7.8.4> (web)
- <https://github.com/advisories/GHSA-m7xq-9374-9rvx> (advisory)

## Sources

- CVE List: [CVE-2025-23061](https://www.cve.org/CVERecord?id=CVE-2025-23061), CVE Terms of Use, modified 2025-01-15
- GitHub Advisory Database: [GHSA-vg7j-7cwx-8wgw](https://github.com/advisories/GHSA-vg7j-7cwx-8wgw), CC-BY-4.0, modified 2025-10-03
- NVD: [CVE-2025-23061](https://nvd.nist.gov/vuln/detail/CVE-2025-23061), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MONGOOSE-2025-23061](https://osv.dev/vulnerability/BIT-MONGOOSE-2025-23061), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2025-23061 · Whole record: https://cve.day/CVE-2025-23061.json · Rebuilt by cve.day 2026-11-25T22:58:53.325Z
