multer@2.3.0

Middleware for handling `multipart/form-data`.

  • latest version

    2.4.0

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    1 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the multer package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Denial of Service (DoS)

    Affected versions of this package are vulnerable to Denial of Service (DoS) via incomplete cleanup of uploaded files when a request is aborted before the storage engine assigns a file path. When an upload is aborted mid-flight, the finishAbort function in make-middleware.js snapshots only the files that already have a path at the moment of abort; any file whose storage engine completes naming and writing after that snapshot is never added to the removal list and is never deleted, leaving orphaned files on disk (or in the configured storage backend). An attacker can repeatedly send and abort multipart upload requests to accumulate unbounded orphaned files, exhausting available disk space.

    How to fix Denial of Service (DoS)?

    Upgrade multer to version 2.4.0 or higher.

    >=2.2.0 <2.4.0