Vulnerabilities in pkg:npm/express-brute
PACKAGEGHSA-984p-xq9m-4rjw is a MODERATE (CVSS 5.6) rate limiting bypass vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Express brute libraries in the npm ecosystem. The issue involves rate limiting bypass in express-brute. Remediation is available in the latest vendor maintenance releases.
pkg:npm/express-brute
Vulnerability advisories affecting package pkg:npm/express-brute. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-984p-xq9m-4rjw | - | MODERATE | Rate Limiting Bypass in express-brute |
GHSA-984p-xq9m-4rjw at a Glance
Security Impact
CVSS: 5.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix GHSA-984p-xq9m-4rjw
To remediate this vulnerability, upgrade all affected Express brute 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 express-brute@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls express-brute
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-984p-xq9m-4rjw, inspect your project dependencies using npm:
npm ls express-brute
Analyze the terminal output to locate any version of Express brute 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 express-brute 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 Express brute, 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
GHSA-984p-xq9m-4rjw Affected Express brute Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
express-brute
|
npm |
≤ 1.0.1
|
|
References
Frequently Asked Questions
What is GHSA-984p-xq9m-4rjw?
Which Express brute versions are affected?
What version fixes GHSA-984p-xq9m-4rjw?
Is express-brute affected?
What is the CVSS score of GHSA-984p-xq9m-4rjw?
What CWE is associated with GHSA-984p-xq9m-4rjw?
How can I check npm dependencies for GHSA-984p-xq9m-4rjw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-984p-xq9m-4rjw",
"modified" : "2021-08-04T21:03:16Z",
"published" : "2019-06-07T21:01:53Z",
"aliases" : [ ],
"summary" : "Rate Limiting Bypass in express-brute",
"details" : "All versions of `express-brute` are vulnerable to Rate Limiting Bypass. Concurrent requests may lead to race conditions that cause the package to incorrectly count requests. This may allow an attacker to bypass the rate limiting provided by the package and execute requests without limiting.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "express-brute"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/AdamPflug/express-brute/issues/46"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-EXPRESSBRUTE-174457"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/823"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-07T21:01:37Z",
"nvd_published_at" : null
}
}