Critical Vulnerability in mogoose Package

mogoose Updated 02 Oct 2025

Summary

03/09/2020
CRITICAL
No i
Critical
9.8

GHSA-5mm9-55c9-p5r7: Malicious Package in mogoose. Affects mogoose versions >= 0.0.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The mogoose package is an npm package used for interacting with MongoDB databases in Node.js applications. It provides an object modeling tool that allows developers to define schemas and models for their data. The package is widely used in Node.js projects for database operations. However, a critical vulnerability has been discovered in the mogoose package that allows malicious code execution and data exfiltration.

Vulnerability Detail

The vulnerability (GHSA-5mm9-55c9-p5r7) in the mogoose package involves the presence of malicious code. When the package is installed and used in a Node.js application, it uploads system information such as the operating system and hostname to a remote server. This unauthorized data exfiltration can lead to potential privacy breaches and compromise the security of the affected systems. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The best course of action is to remove the mogoose package and follow the recommended steps for fixing the vulnerability.

Conclusion

The mogoose package has been found to contain a critical vulnerability that allows unauthorized data exfiltration. To ensure the security of your application and protect against potential privacy breaches, it is recommended to remove the package and follow the provided steps for fixing the vulnerability. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for mogoose →

Share this vulnerability

FAQ

The vulnerability allows unauthorized data exfiltration, which can lead to privacy breaches and compromise the security of affected systems.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

Yes, the recommended fix is to remove the mogoose package from your environment and use a secure alternative for MongoDB interactions.

There are no indications of further compromise beyond the unauthorized data exfiltration mentioned in the vulnerability details.

The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

Related vulnerabilities

Recent vulnerabilities recorded for mogoose.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback