CVE-2017-20160: Express param Express-param Vulnerable To Improper Handling Vulnerability
CRITICALCVE-2017-20160 is a CRITICAL (CVSS 9.8) express-param vulnerable to improper handling vulnerability (CWE-235: Improper Handling of Extra Parameters) affecting Express param libraries in the npm ecosystem. The issue involves express-param vulnerable to improper handling of extra parameters. Remediation is available by upgrading affected packages to version 1.0.0.
CVE-2017-20160 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-20160
To remediate this vulnerability, upgrade all affected Express param 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-param@1.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls express-param
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2017-20160, inspect your project dependencies using npm:
npm ls express-param
Analyze the terminal output to locate any version of Express param in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0), your application is affected.
Note: The npm ls express-param 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-235: Improper Handling of Extra Parameters, where the product does not handle or incorrectly handles when the number of parameters, fields, or arguments with the same name exceeds the expected amount. In Express param, 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-20160 Affected Express param Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
express-param
|
npm |
< 1.0.0
|
1.0.0
|
References
Frequently Asked Questions
What is CVE-2017-20160?
Which Express param versions are affected?
What version fixes CVE-2017-20160?
Is express-param affected?
What is the CVSS score of CVE-2017-20160?
What CWE is associated with CVE-2017-20160?
How can I check npm dependencies for CVE-2017-20160?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fr54-72wr-cqvq",
"modified" : "2023-01-09T21:59:21Z",
"published" : "2022-12-31T21:30:20Z",
"aliases" : [ "CVE-2017-20160" ],
"summary" : "express-param vulnerable to Improper Handling of Extra Parameters",
"details" : "A vulnerability was found in flitto express-param up to 0.x. It has been classified as critical. This affects an unknown part of the file `lib/fetchParams.js`. The manipulation leads to improper handling of extra parameters. It is possible to initiate the attack remotely. Upgrading to version 1.0.0 can address this issue. The name of the patch is db94f7391ad0a16dcfcba8b9be1af385b25c42db. It is recommended to upgrade the affected component. The identifier VDB-217149 was assigned to this vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "express-param"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-20160"
}, {
"type" : "WEB",
"url" : "https://github.com/flitto/express-param/pull/19"
}, {
"type" : "WEB",
"url" : "https://github.com/flitto/express-param/commit/db94f7391ad0a16dcfcba8b9be1af385b25c42db"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/flitto/express-param"
}, {
"type" : "WEB",
"url" : "https://github.com/flitto/express-param/releases/tag/1.0.0"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.217149"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.217149"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-235" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-09T21:59:21Z",
"nvd_published_at" : "2022-12-31T20:15:00Z"
}
}