HTML Injection Affecting ag-grid package, versions >=3.3.0 <5.0.0-alpha.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID npm:ag-grid:20160519
  • published 16 Mar 2017
  • disclosed 18 May 2016
  • credit Theodore Brown

Introduced: 18 May 2016

CVE NOT AVAILABLE CWE-80 Open this link in a new tab

How to fix?

Upgrade ag-grid to version 5.0.0 or higher.

Overview

ag-grid is an advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components.

Affected versions of the package are vulnerable to HTML Injection. ag-grid used mozilla's Element.innerHTML, which is vulnerable to Cross-site Scripting (XSS) attacks when used within a user-inputted value. In this case an attacker could insert a malicious username and initiate a XSS attack, like:

<span onclick="alert('hacked!')">John Smith</span>

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None