Vulnerabilities in pkg:npm/method-override
PACKAGECVE-2017-16136 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Method override libraries in the npm ecosystem. The issue involves method-override redos when untrusted user input passed into x-http-method-override header. Remediation is available by upgrading affected packages to version 2.3.10.
pkg:npm/method-override
Vulnerability advisories affecting package pkg:npm/method-override. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-qx2f-477c-35rq | CVE-2017-16136 | HIGH | method-override ReDoS when untrusted user input passed into X-HTTP-Method-Override header |
CVE-2017-16136 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2017-16136
To remediate this vulnerability, upgrade all affected Method override 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 method-override@2.3.10
npm install method-override@2.3.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls method-override
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2017-16136, inspect your project dependencies using npm:
npm ls method-override
Analyze the terminal output to locate any version of Method override in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.10), your application is affected.
Note: The npm ls method-override 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Method override, 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-2017-16136 Affected Method override Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
method-override
|
npm |
≥ 1.0.2
< 2.3.10
All 1 versions
1.0.2
|
2.3.10
|
|
method-override
|
npm |
≥ 2.0.0
< 2.3.10
|
2.3.10
|
References
Frequently Asked Questions
What is CVE-2017-16136?
Which Method override versions are affected?
What version fixes CVE-2017-16136?
Is method-override affected?
What is the CVSS score of CVE-2017-16136?
What CWE is associated with CVE-2017-16136?
How can I check npm dependencies for CVE-2017-16136?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qx2f-477c-35rq",
"modified" : "2023-09-11T18:24:36Z",
"published" : "2018-07-24T20:06:04Z",
"aliases" : [ "CVE-2017-16136" ],
"summary" : "method-override ReDoS when untrusted user input passed into X-HTTP-Method-Override header",
"details" : "Affected versions of `method-override` are vulnerable to a regular expression denial of service vulnerability when untrusted user input is passed into the `X-HTTP-Method-Override` header.\n\n\n## Recommendation\n\nUpdate to version 2.3.10 or later",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "method-override"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.2"
}, {
"fixed" : "2.3.10"
} ]
} ],
"versions" : [ "1.0.2" ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "method-override"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.3.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-16136"
}, {
"type" : "WEB",
"url" : "https://github.com/expressjs/method-override/commit/4c58835a61fdf7a8e070d6f8ecd5379a961d0987"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/expressjs/method-override"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/538"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:53:07Z",
"nvd_published_at" : null
}
}