Skip to content
Fencer Intel
critical 9.0

CVE-2025-23061 json

Mongoose search injection vulnerability

published last yr. modified last mo. also BIT-mongoose-2025-23061 , EUVD-2025-0106 , GHSA-vg7j-7cwx-8wgw

cvss
9.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
7.2%
EPSS 7.2% chance of exploitation in 30 days, percentile 94%
public exploits
0
none known, plus a Nuclei check

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.

Patch / fix

  • npm mongoose 6.13.6, 7.8.4, 8.9.5
  • bitnami mongoose 6.13.6, 7.8.4, 8.9.5
  • mongoosejs Mongoose 6.13.6, 7.8.4, 8.9.5

Is CVE-2025-23061 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
last yr.

Exploit prediction

7.24% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

CVSS scores

assigned by version score vector
CNA 3.1 9.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub 3.1 9.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 9.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
npm mongoose
>=8.0.0-rc0, <8.9.5
>=7.0.0-rc0, <7.8.4
<6.13.6
8.9.5
7.8.4
6.13.6
bitnami mongoose
>=6.0.0, <6.13.6
>=7.0.0, <7.8.4
>=8.0.0, <8.9.5
6.13.6
7.8.4
8.9.5

Affected products

  • mongoosejs Mongoose

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.