Vulnerabilities in pkg:npm/ag-grid

PACKAGE
Advisory Summary

GHSA-7p6w-x2gr-rrf8 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ag grid libraries in the npm ecosystem. The issue involves ag-grid cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 14.0.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/ag-grid

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/ag-grid. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7p6w-x2gr-rrf8 - HIGH ag-grid Cross-Site Scripting vulnerability
GHSA-wfw3-rgfr-6g67 CVE-2017-16009 MODERATE XSS via Angular Expression in ag-grid

GHSA-7p6w-x2gr-rrf8 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7p6w-x2gr-rrf8
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Ag grid
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-7p6w-x2gr-rrf8

To remediate this vulnerability, upgrade all affected Ag grid dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ag-grid fixed: 14.0.0
npm install ag-grid@14.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls ag-grid

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-7p6w-x2gr-rrf8, inspect your project dependencies using npm:

npm ls ag-grid

Analyze the terminal output to locate any version of Ag grid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.0.0), your application is affected.

Note: The npm ls ag-grid command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Ag grid, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of `ag-grid` prior to 14.0.0 are vulnerable to Cross-Site Scripting (XSS). Grid contents are not properly sanitized and may allow attackers to execute arbitrary JavaScript if user input is rendered in the grid. ## Recommendation Upgrade to version 14.0.0 or later.

GHSA-7p6w-x2gr-rrf8 Affected Ag grid Versions

1 component(s)
Fixed Versions:
14.0.0
Product / Package Ecosystem Affected Versions Fixed Version
ag-grid
npm
< 14.0.0
14.0.0

References

Frequently Asked Questions

What is GHSA-7p6w-x2gr-rrf8?
GHSA-7p6w-x2gr-rrf8 is a security vulnerability in Ag grid involving ag-grid Cross-Site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Ag grid versions are affected?
Affected versions include releases prior to 14.0.0 across affected packages: ag-grid.
What version fixes GHSA-7p6w-x2gr-rrf8?
Upgrading to 14.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ag-grid affected?
Yes, ag-grid is affected in releases prior to 14.0.0. Upgrade your dependency to 14.0.0 or later.
What CWE is associated with GHSA-7p6w-x2gr-rrf8?
GHSA-7p6w-x2gr-rrf8 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for GHSA-7p6w-x2gr-rrf8?
Run the dependency tree command: 'npm ls ag-grid'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7p6w-x2gr-rrf8",
  "modified" : "2025-07-10T16:49:40Z",
  "published" : "2020-09-02T21:28:05Z",
  "aliases" : [ ],
  "summary" : "ag-grid Cross-Site Scripting vulnerability",
  "details" : "Versions of `ag-grid` prior to 14.0.0 are vulnerable to Cross-Site Scripting (XSS). Grid contents are not properly sanitized and may allow attackers to execute arbitrary JavaScript if user input is rendered in the grid. \n\n\n## Recommendation\n\nUpgrade to version 14.0.0 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ag-grid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ag-grid/ag-grid/issues/1961"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/issues/5799"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ag-grid/ag-grid/commit/b66b1ddf73056714f6574e054d6e05d6ba531ce8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ag-grid/ag-grid"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:39:39Z",
    "nvd_published_at" : null
  }
}