CVE-2025-57282: ngrok Command Injection Vulnerability

ngrok Updated 04 Jun 2026

Summary

18/05/2026
No i
High
8.8

CVE-2025-57282: ngrok is Vulnerable to Command Injection. Affects ngrok versions 4.3.3. 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

ngrok is a widely used tool that enables developers to expose local servers to the internet securely. It provides features such as secure tunnels, custom subdomains, and traffic inspection, making it essential for testing webhooks and APIs. However, certain versions of ngrok have been found to be vulnerable to command injection, which could allow attackers to execute arbitrary commands on the host system.

Vulnerability Detail

The vulnerability in ngrok versions 4.3.3 and 5.0.0-beta.2 stems from improper handling of user input, which allows an attacker to inject malicious commands. This could lead to unauthorized access, data breaches, or system compromise. The vulnerability is classified under CWE-77, indicating a command injection flaw. The potential ramifications are severe, as an attacker could gain control over the affected system, leading to data loss or further exploitation.

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

If you cannot update ngrok immediately, consider restricting access to the ngrok service and ensuring that only trusted users can interact with it. Additionally, avoid using ngrok in environments where sensitive data is handled until the vulnerability is resolved.

Conclusion

The command injection vulnerability in ngrok versions 4.3.3 and 5.0.0-beta.2 poses a significant risk to users. It is crucial to update to the latest version to mitigate this risk. Users should also consider using tools like Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for ngrok →

Share this vulnerability

FAQ

ngrok versions 4.3.3 and 5.0.0-beta.2 are vulnerable to command injection.

Command injection is a security vulnerability that allows an attacker to execute arbitrary commands on a host operating system via a vulnerable application.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

An attacker could exploit this vulnerability to execute arbitrary commands, potentially leading to unauthorized access, data breaches, or system compromise.

Yes, the CVSS score for this vulnerability is 8.8, indicating a high severity level.

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