Cross-Site Scripting Vulnerability in md-data-table

md-data-table Updated 02 Oct 2025

Summary

01/09/2020
HIGH
No i
High
Not published

GHSA-hgr5-82rc-p936: Cross-Site Scripting in md-data-table. Affects md-data-table versions >= 0.0.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

md-data-table is an npm package that provides functionality for rendering data tables. It is commonly used in web applications to display tabular data in a user-friendly manner. However, all versions of md-data-table are vulnerable to a cross-site scripting (XSS) attack. This means that if an attacker can control the data that is rendered by the mdt-row component, they can inject malicious scripts into the rendered HTML, potentially leading to unauthorized access, data theft, or other harmful actions.

Vulnerability Detail

The vulnerability in md-data-table arises from a lack of proper input sanitization. When user-controlled data is rendered by the mdt-row component, it is not properly sanitized, allowing for the execution of arbitrary scripts. This can occur when the package is used to display user-generated content or when data from external sources is not properly validated before being rendered. The impact of this vulnerability can range from defacement of the affected web page to the theft of sensitive user information.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, developers can manually sanitize the user-controlled data before passing it to the mdt-row component. This can be done using a library or function that escapes or removes any potentially malicious characters. Here is an example of how this can be achieved using the DOMPurify library:

import DOMPurify from 'dompurify';

const sanitizedData = DOMPurify.sanitize(userControlledData);

Conclusion

In conclusion, md-data-table is vulnerable to cross-site scripting (XSS) attacks due to a lack of proper input sanitization. This can lead to various security risks and potential harm to users. It is recommended to either choose an alternative package with proper input sanitization or ensure that all user-controlled data is properly sanitized before rendering with md-data-table. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for md-data-table →

Share this vulnerability

FAQ

md-data-table is an npm package that provides functionality for rendering data tables in web applications.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

The vulnerability in md-data-table occurs due to a lack of proper input sanitization, allowing for the execution of arbitrary scripts.

The potential consequences of this vulnerability include unauthorized access, data theft, defacement of web pages, and other harmful actions.

At the time of this report, there is no fix available for this vulnerability in md-data-table.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback