GHSA-q3w9-g74q-vp5f: Express fileupload Denial of Service Vulnerability

LOW
Published
Advisory Summary

GHSA-q3w9-g74q-vp5f is a LOW denial of service vulnerability (General Security Weakness) affecting Express fileupload libraries in the npm ecosystem. The issue involves denial of service in express-fileupload. Remediation is available by upgrading affected packages to version 1.1.6-alpha.6.

GHSA-q3w9-g74q-vp5f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-q3w9-g74q-vp5f
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Express fileupload
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-q3w9-g74q-vp5f

To remediate this vulnerability, upgrade all affected Express fileupload 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-fileupload fixed: 1.1.6-alpha.6
npm install express-fileupload@1.1.6-alpha.6
express-fileupload fixed: 1.1.6-alpha.6
npm install express-fileupload@1.1.6-alpha.6
express-fileupload fixed: 1.1.6-alpha.6
npm install express-fileupload@1.1.6-alpha.6
express-fileupload fixed: 1.1.6-alpha.6
npm install express-fileupload@1.1.6-alpha.6
express-fileupload fixed: 1.1.6-alpha.6
npm install express-fileupload@1.1.6-alpha.6
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-fileupload

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-q3w9-g74q-vp5f, inspect your project dependencies using npm:

npm ls express-fileupload

Analyze the terminal output to locate any version of Express fileupload in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.6-alpha.6), your application is affected.

Note: The npm ls express-fileupload 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 General Security Weakness. In Express fileupload, 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

Versions of `express-fileupload` prior to 1.1.6-alpha.6 are vulnerable to Denial of Service. The package causes server responses to be delayed (up to 30s in internal testing) if the request contains a large `filename` of `.` characters. ## Recommendation Upgrade to version 1.1.6-alpha.6 or later.

GHSA-q3w9-g74q-vp5f Affected Express fileupload Versions

5 component(s)
Fixed Versions:
1.1.6-alpha.6
Product / Package Ecosystem Affected Versions Fixed Version
express-fileupload
npm
< 1.1.6-alpha.6
1.1.6-alpha.6
express-fileupload
npm
< 1.1.6-alpha.6
1.1.6-alpha.6
express-fileupload
npm
< 1.1.6-alpha.6
1.1.6-alpha.6
express-fileupload
npm
< 1.1.6-alpha.6
1.1.6-alpha.6
express-fileupload
npm
< 1.1.6-alpha.6
1.1.6-alpha.6

References

Frequently Asked Questions

What is GHSA-q3w9-g74q-vp5f?
GHSA-q3w9-g74q-vp5f is a security vulnerability in Express fileupload involving Denial of Service in express-fileupload under General Security Weakness.
Which Express fileupload versions are affected?
Affected versions include releases prior to 1.1.6-alpha.6 across affected packages: express-fileupload.
What version fixes GHSA-q3w9-g74q-vp5f?
Upgrading to 1.1.6-alpha.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is express-fileupload affected?
Yes, express-fileupload is affected in releases prior to 1.1.6-alpha.6. Upgrade your dependency to 1.1.6-alpha.6 or later.
What CWE is associated with GHSA-q3w9-g74q-vp5f?
GHSA-q3w9-g74q-vp5f is classified under General Security Weakness.
How can I check npm dependencies for GHSA-q3w9-g74q-vp5f?
Run the dependency tree command: 'npm ls express-fileupload'. 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-q3w9-g74q-vp5f",
  "modified" : "2020-08-31T18:51:13Z",
  "published" : "2020-09-03T21:14:12Z",
  "aliases" : [ ],
  "summary" : "Denial of Service in express-fileupload",
  "details" : "Versions of `express-fileupload` prior to 1.1.6-alpha.6 are vulnerable to Denial of Service. The package causes server responses to be delayed (up to 30s in internal testing) if the request contains a large `filename` of `.` characters.\n\n\n\n\n## Recommendation\n\nUpgrade to version 1.1.6-alpha.6 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "express-fileupload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.6-alpha.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "express-fileupload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.6-alpha.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.1.3-alpha.2"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "express-fileupload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.6-alpha.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.1.2-alpha.1"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "express-fileupload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.6-alpha.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.1.1-alpha.3"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "express-fileupload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.6-alpha.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.0.0-alpha.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1216"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:51:13Z",
    "nvd_published_at" : null
  }
}