org.webjars.bowergithub.dojo:dojo@1.10.9 vulnerabilities

  • latest version

    1.17.3

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    1 years ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.bowergithub.dojo:dojo 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
    • H
    Prototype Pollution

    org.webjars.bowergithub.dojo:dojo is a foundation package for the Dojo 1 Toolkit. While still being maintained, new development is primarily focused on modern Dojo.

    Affected versions of this package are vulnerable to Prototype Pollution via the setObject function.

    PoC

    1. Install `dojo` by running `npm i dojo`.
    2. Create the following HTML file in the directory where `dojo` is installed.
    3. Access the HTML page via a browser - you should see the alert.
    
    <!-- The HTML file -->
    <!DOCTYPE html>
    <html>
    <head>
    <script src="node_modules/dojo/dojo.s"></script>
    </head>
    <body>
    <script>
            document.addEventListener("DOMContentLoaded", function() {
                    const obj = {};
                    dojo.setObject("__proto__.vuln", "polluted!", obj);
                    alert("anything".vuln);
            })
    </script>
    </body>
    </html>
    

    How to fix Prototype Pollution?

    Upgrade org.webjars.bowergithub.dojo:dojo to version 1.17.2 or higher.

    [,1.17.2)
    • M
    Prototype Pollution

    org.webjars.bowergithub.dojo:dojo is a foundation package for the Dojo 1 Toolkit. While still being maintained, new development is primarily focused on modern Dojo.

    Affected versions of this package are vulnerable to Prototype Pollution. The deepCopy method within dojo could be tricked into adding or modifying properties of Object.prototype

    How to fix Prototype Pollution?

    Upgrade org.webjars.bowergithub.dojo:dojo to version 1.17.2 or higher.

    [,1.17.2)
    • M
    Cross-site Scripting (XSS)

    org.webjars.bowergithub.dojo:dojo is a foundation package for the Dojo 1 Toolkit. While still being maintained, new development is primarily focused on modern Dojo.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS).

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.webjars.bowergithub.dojo:dojo to version 1.14 or higher.

    [,1.14)
    • M
    Cross-site Scripting (XSS)

    org.webjars.bowergithub.dojo:dojo is a foundation package for the Dojo 1 Toolkit. While still being maintained, new development is primarily focused on modern Dojo.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS).

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.webjars.bowergithub.dojo:dojo to version 1.10.10, 1.11.6, 1.12.4, 1.13.1 or higher.

    [,1.10.10)[1.11.0,1.11.6)[1.12.0,1.12.4)[1.13.0,1.13.1)