ag-grid-community@21.2.0 vulnerabilities

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

  • latest version

    33.0.1

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    11 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the ag-grid-community 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

    ag-grid-community is a fully-featured and highly customizable JavaScript data grid.

    Affected versions of this package are vulnerable to Prototype Pollution through the vulnerable functions. An attacker can execute arbitrary code or cause a denial of service by injecting arbitrary properties.

    Notes:

    1. ag-grid-community is vulnerable through the following component: _.mergeDeep

    2. ag-grid-enterprise is vulnerable through the following components: _.mergeDeep, _ModuleSupport.jsonApply, _ModuleSupport.setPath, _Util.jsonApply

    3. @ag-grid-enterprise/charts is vulnerable through the following components: _ModuleSupport.jsonApply, _ModuleSupport.setPath, _Util.jsonApply

    How to fix Prototype Pollution?

    Upgrade ag-grid-community to version 31.3.4 or higher.

    <31.3.4
    • M
    Cross-site Scripting (XSS)

    ag-grid-community is a fully-featured and highly customizable JavaScript data grid.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS). By using cellRenderer with a simple function and valueFormatter together, you are able to target the loadTemplate function, which executes the script since it is using the innerHTML property.

    This is only the case when you are returning a string, number, or boolean.

    PoC

    // An example application: https://embed.plnkr.co/plunk/fbtYhl
    // Replace ColumnDefinition with below
                      headerName: "Ag grid Testing Header 1 With Long text",
                      field: "value",
                       headerComponent: "CustomHeader",
                       valueFormatter: () => `><img src=x onerror=prompt(document.domain)>`
                  },
    

    How to fix Cross-site Scripting (XSS)?

    Upgrade ag-grid-community to version 25.2.0 or higher.

    <25.2.0