Vulnerabilities in pkg:npm/blueimp-file-upload

PACKAGE
Advisory Identifier: GHSA-4cj8-g9cp-v5wr
Advisory Summary

CVE-2018-9206 is a CRITICAL (CVSS 9.8) unrestricted upload of file with vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Blueimp file upload libraries in the npm ecosystem. The issue involves unrestricted upload of file with dangerous type in blueimp-file-upload. Remediation is available by upgrading affected packages to version 9.22.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/blueimp-file-upload

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-4cj8-g9cp-v5wr CVE-2018-9206 CRITICAL Unrestricted Upload of File with Dangerous Type in blueimp-file-upload

CVE-2018-9206 at a Glance

CVE Identifier CVE-2018-9206
GHSA Identifier GHSA-4cj8-g9cp-v5wr
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Blueimp file upload
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-2018-9206

To remediate this vulnerability, upgrade all affected Blueimp file upload dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

blueimp-file-upload fixed: 9.22.1
npm install blueimp-file-upload@9.22.1
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 blueimp-file-upload

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2018-9206, inspect your project dependencies using npm:

npm ls blueimp-file-upload

Analyze the terminal output to locate any version of Blueimp file upload in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.22.1), your application is affected.

Note: The npm ls blueimp-file-upload 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-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Blueimp file upload, 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

Unauthenticated arbitrary file upload vulnerability in Blueimp jQuery-File-Upload <= v9.22.0

CVE-2018-9206 Affected Blueimp file upload Versions

1 component(s)
Fixed Versions:
9.22.1
Product / Package Ecosystem Affected Versions Fixed Version
blueimp-file-upload
npm
< 9.22.1
9.22.1

References

Frequently Asked Questions

What is CVE-2018-9206?
CVE-2018-9206 is a security vulnerability in Blueimp file upload involving Unrestricted Upload of File with Dangerous Type in blueimp-file-upload under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Blueimp file upload versions are affected?
Affected versions include releases prior to 9.22.1 across affected packages: blueimp-file-upload.
What version fixes CVE-2018-9206?
Upgrading to 9.22.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is blueimp-file-upload affected?
Yes, blueimp-file-upload is affected in releases prior to 9.22.1. Upgrade your dependency to 9.22.1 or later.
What is the CVSS score of CVE-2018-9206?
CVE-2018-9206 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-2018-9206?
CVE-2018-9206 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check npm dependencies for CVE-2018-9206?
Run the dependency tree command: 'npm ls blueimp-file-upload'. 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-4cj8-g9cp-v5wr",
  "modified" : "2022-09-14T19:19:04Z",
  "published" : "2018-10-22T18:53:56Z",
  "aliases" : [ "CVE-2018-9206" ],
  "summary" : "Unrestricted Upload of File with Dangerous Type in blueimp-file-upload",
  "details" : "Unauthenticated arbitrary file upload vulnerability in Blueimp jQuery-File-Upload <= v9.22.0",
  "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" : "blueimp-file-upload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.22.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.22.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-9206"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-4cj8-g9cp-v5wr"
  }, {
    "type" : "WEB",
    "url" : "https://wpvulndb.com/vulnerabilities/9136"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/45790"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/46182"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/105679"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/106629"
  }, {
    "type" : "WEB",
    "url" : "http://www.vapidlabs.com/advisory.php?v=204"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:58:08Z",
    "nvd_published_at" : null
  }
}