9.8

CVE-2025-23061: mongoosejs mongoose Code Injection

CVSS: 9.8v3.1CriticalAnalyzed
AliasesGHSA-vg7j-7cwx-8wgwBIT-mongoose-2025-23061
Published 15-01-2025Last modified 15-01-2025

Vulnerability summary

CVE-2025-23061 is a critical (CVSS 9.8) Code Injection vulnerability in mongoosejs mongoose. EPSS estimates a 7.28% chance of exploitation in the next 30 days, higher than 94.3% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
7.28%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 15-01-2025
    PublishedVulnerability first disclosed.
  2. 15-01-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

7.28%

Chance of exploitation in the next 30 days

Percentile

94%

Versus all other CVEs

30-day change

0.00 pp

From 7.28% on 21-09-2026

21-09-202621-10-2026
EPSS score
7.28%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Mongoosejs1 product
  • mongoose≥ 6.0.0, < 6.13.6 | < 6.13.6 | ≥ 7.0.0, < 7.8.4 | ≥ 8.0.0, < 8.9.5
Npm1 product
  • mongoose≥ 8.0.0-rc0, < 8.9.5 | ≥ 7.0.0-rc0, < 7.8.4 | < 6.13.6

2 vendors · 2 products

References

12 links
Show all 12 references