@knutkirkhorn/free-space/.../free-space@1.2.0 vulnerabilities

Get the amount of free space for a drive

  • latest version

    1.3.2

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @knutkirkhorn/free-space package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Arbitrary Command Execution

    @knutkirkhorn/free-space is a package that gets the amount of free space for a drive.

    Affected versions of this package are vulnerable to Arbitrary Command Execution due to the lack of sanitization of the input parameter of the library's exported anonymous function. The exported function, when given a parameter checks what platform the code is being run on and sends that parameter to a function call in either lib/unix.js or lib/windows/js. The vulnerability exists in lib/unix.js which directly uses the user-input parameter: disk in the template string that ultimately gets executed.

    How to fix Arbitrary Command Execution?

    Upgrade @knutkirkhorn/free-space to version 1.3.0 or higher.

    <1.3.0