GHSA-hgr5-82rc-p936: Md data table Cross-Site Scripting Vulnerability
HIGHGHSA-hgr5-82rc-p936 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Md data table libraries in the npm ecosystem. The issue involves cross-site scripting in md-data-table. Remediation is available in the latest vendor maintenance releases.
GHSA-hgr5-82rc-p936 at a Glance
How to Fix GHSA-hgr5-82rc-p936
To remediate this vulnerability, upgrade all affected Md data table 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 md-data-table@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls md-data-table
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-hgr5-82rc-p936, inspect your project dependencies using npm:
npm ls md-data-table
Analyze the terminal output to locate any version of Md data table in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls md-data-table 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 Md data table, 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-hgr5-82rc-p936 Affected Md data table Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
md-data-table
|
npm |
≥ 0.0.0
|
|
References
Frequently Asked Questions
What is GHSA-hgr5-82rc-p936?
Which Md data table versions are affected?
What version fixes GHSA-hgr5-82rc-p936?
Is md-data-table affected?
What CWE is associated with GHSA-hgr5-82rc-p936?
How can I check npm dependencies for GHSA-hgr5-82rc-p936?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hgr5-82rc-p936",
"modified" : "2020-08-31T18:34:23Z",
"published" : "2020-09-01T21:24:41Z",
"aliases" : [ ],
"summary" : "Cross-Site Scripting in md-data-table",
"details" : "All versions of `md-data-table` are vulnerable to cross-site scripting (XSS). This vulnerability is exploitable if an attacker has control over data that is rendered by `mdt-row`\n\n\n## Recommendation\n\nAs there is no fix for this vulnerability at this time we recommend either selecting another package to perform this functionality or properly sanitizing all user data prior to rendering with `md-data-table`",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "md-data-table"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/748"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:34:23Z",
"nvd_published_at" : null
}
}