open@0.0.4 vulnerabilities

Open stuff like URLs, files, executables. Cross-platform.

  • latest version

    10.1.0

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    11 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the open 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
    • C
    Arbitrary Code Injection

    open is a cross platform package that opens stuff like URLs, files, executables.

    Affected versions of this package are vulnerable to Arbitrary Code Injection when unsanitized user input is passed in.

    The package does come with the following warning in the readme:

    The same care should be taken when calling open as if you were calling child_process.exec directly. If it is an executable it will run in a new shell.
    

    The package open is replacing the opn package, which is now deprecated. The older versions of open are vulnerable.

    Note: Upgrading open to the last version will prevent this vulnerability but is also likely to have unwanted effects since it now has a very different API.

    How to fix Arbitrary Code Injection?

    Upgrade open to version 6.0.0 or higher.

    <6.0.0
    • H
    Arbitrary Command Injection

    open is a cross platform package that opens stuff like URLs, files, executables.

    Affected versions of this package are vulnerable to Arbitrary Command Injection. Urls are not properly escaped before concatenating them into the command that is opened using exec().

    Note: Upgrading open to the last version will prevent this vulnerability but is also likely to have unwanted effects since it now has a very different API.

    How to fix Arbitrary Command Injection?

    Upgrade open to version 6.0.0 or higher.

    <6.0.0