CVE-2025-57282: Ngrok Ngrok Is Vulnerable To Command Vulnerability
HIGHCVE-2025-57282 is a HIGH (CVSS 8.8) ngrok is vulnerable to command vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Ngrok libraries in the npm ecosystem. The issue involves ngrok is vulnerable to command injection. Remediation is available in the latest vendor maintenance releases.
CVE-2025-57282 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-57282
To remediate this vulnerability, upgrade all affected Ngrok dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install ngrok@Latest secure release
npm install ngrok@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ngrok
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-57282, inspect your project dependencies using npm:
npm ls ngrok
Analyze the terminal output to locate any version of Ngrok in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls ngrok command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Ngrok, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-57282 Affected Ngrok Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2025-57282?
Which Ngrok versions are affected?
What version fixes CVE-2025-57282?
Is ngrok affected?
What is the CVSS score of CVE-2025-57282?
What CWE is associated with CVE-2025-57282?
How can I check npm dependencies for CVE-2025-57282?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qr28-p3wr-mxq3",
"modified" : "2026-05-29T19:10:32Z",
"published" : "2026-05-18T18:31:29Z",
"aliases" : [ "CVE-2025-57282" ],
"summary" : "ngrok is Vulnerable to Command Injection",
"details" : "ngrok v4.3.3 and 5.0.0-beta.2 are vulnerable to Command Injection.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ngrok"
},
"versions" : [ "4.3.3" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "ngrok"
},
"versions" : [ "5.0.0-beta.2" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57282"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/Dremig/90c2a0a2f85b0921f10e0bb3192a0c23"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bubenshchykov/ngrok"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-29T19:10:32Z",
"nvd_published_at" : "2026-05-18T16:16:29Z"
}
}