rollup@2.41.0 vulnerabilities

Next-generation ES module bundler

  • latest version

    4.59.0

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    22 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the rollup 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
    Directory Traversal

    rollup is a Next-generation ES module bundler

    Affected versions of this package are vulnerable to Directory Traversal in the Bundle class in bundle.ts, which handles file name sanitization in the core engine. An attacker can overwrite arbitrary files on the host filesystem outside the application root by supplying malicious output filenames containing traversal sequences through CLI named inputs, manual chunk aliases, or malicious plugins. This can allow further attacks in which critical system or user configuration files are read and executed in unintended ways.

    How to fix Directory Traversal?

    Upgrade rollup to version 2.80.0, 3.30.0, 4.59.0 or higher.

    <2.80.0>=3.0.0-0 <3.30.0>=4.0.0-1 <4.59.0
    • M
    Cross-site Scripting (XSS)

    rollup is a Next-generation ES module bundler

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) on websites that include rollup-bundled files configured with an output format of cjs, iife, or umd and use import.meta

    An attacker can execute arbitrary scripts in the context of the web page by manipulating HTML elements such as an img tag with an unsanitized name attribute.

    How to fix Cross-site Scripting (XSS)?

    Upgrade rollup to version 2.79.2, 3.29.5, 4.22.4 or higher.

    >=0.59.0 <2.79.2>=3.0.0 <3.29.5>=4.0.0 <4.22.4