npm package report

Is mongoose safe?

9 known vulnerabilities, worst severity CRITICAL.

// reach

25 direct dependencies

7 carry known advisories, worst CRITICAL

141 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


cvss
9.0
critical

CVSS v3.1 base score out of 10

epss
7.2%
high

chance of exploitation in 30 days, 94th percentile of all CVEs

xyz score
5.5
medium

CyberXYZ composite out of 10

fig. 01 — GHSA-vg7j-7cwx-8wgw, the advisory selected below

// 9 advisories

GHSA-vg7j-7cwx-8wgw

CRITICALGitHub ratingCVE-2025-23061

Mongoose versions prior to 8.9.5, 7.8.4, and 6.13.6 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.

NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.

// cvss v3.1 vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Checked 2026-11-06 at 19:19 UTC. The most recent advisory here was published 2026-07-24. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.