Vulnerabilities in pkg:npm/ag-grid
PACKAGEGHSA-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.
pkg:npm/ag-grid
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
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.
npm install ag-grid@14.0.0
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
GHSA-7p6w-x2gr-rrf8 Affected Ag grid Versions
1 component(s)| 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?
Which Ag grid versions are affected?
What version fixes GHSA-7p6w-x2gr-rrf8?
Is ag-grid affected?
What CWE is associated with GHSA-7p6w-x2gr-rrf8?
How can I check npm dependencies for GHSA-7p6w-x2gr-rrf8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}