Vulnerabilities in pkg:npm/express-param

PACKAGE
Advisory Identifier: GHSA-fr54-72wr-cqvq
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/express-param

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/express-param. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-fr54-72wr-cqvq CVE-2017-20160 CRITICAL express-param vulnerable to Improper Handling of Extra Parameters

CVE-2017-20160 at a Glance

CVE Identifier CVE-2017-20160
GHSA Identifier GHSA-fr54-72wr-cqvq
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-235: Improper Handling of Extra Parameters
Affected Product Express param
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

express-param fixed: 1.0.0
npm install express-param@1.0.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2017-20160 Affected Express param Versions

1 component(s)
Fixed Versions:
1.0.0
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?
CVE-2017-20160 is a security vulnerability in Express param involving express-param vulnerable to Improper Handling of Extra Parameters under CWE-235: Improper Handling of Extra Parameters.
Which Express param versions are affected?
Affected versions include releases prior to 1.0.0 across affected packages: express-param.
What version fixes CVE-2017-20160?
Upgrading to 1.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is express-param affected?
Yes, express-param is affected in releases prior to 1.0.0. Upgrade your dependency to 1.0.0 or later.
What is the CVSS score of CVE-2017-20160?
CVE-2017-20160 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-20160?
CVE-2017-20160 is classified under CWE-235: Improper Handling of Extra Parameters (The product does not handle or incorrectly handles when the number of parameters, fields, or arguments with the same name exceeds the expected amount.).
How can I check npm dependencies for CVE-2017-20160?
Run the dependency tree command: 'npm ls express-param'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}