CVE-2019-11003: Cross-Site Scripting in materialize-css

materialize-css Updated 02 Oct 2025

Summary

09/04/2019
No i
Moderate
6.1

CVE-2019-11003: Materialize-css vulnerable to Cross-site Scripting in autocomplete component. Affects materialize-css versions < 1.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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

materialize-css is an npm package that provides a responsive front-end framework for building web applications. It offers a wide range of components and styles to create modern and visually appealing user interfaces. However, all versions of materialize-css are vulnerable to Cross-Site Scripting (XSS) attacks. The autocomplete component of the package does not properly sanitize user input, allowing an attacker to execute arbitrary JavaScript code if the malicious input is rendered by a user.

Vulnerability Detail

The Cross-Site Scripting vulnerability in materialize-css arises from the lack of input sanitization in the autocomplete component. This allows an attacker to inject malicious JavaScript code that will be executed by unsuspecting users. The impact of this vulnerability can range from stealing sensitive user information, such as login credentials or personal data, to performing actions on behalf of the user without their consent. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

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 there is no official fix for this vulnerability, a possible workaround is to manually sanitize user input before rendering it using the autocomplete component. This can be achieved by implementing server-side input validation and sanitization techniques, such as using a library like DOMPurify to sanitize user input before displaying it to users.

Conclusion

materialize-css is vulnerable to Cross-Site Scripting (XSS) attacks due to insufficient input sanitization in the autocomplete component. Currently, there is no fix available for this vulnerability. It is advised to use an alternative module that provides proper input sanitization until a fix is released. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for materialize-css →

Share this vulnerability

FAQ

materialize-css is an npm package that provides a responsive front-end framework for building web applications. It offers a wide range of components and styles to create modern and visually appealing user interfaces.

Cross-Site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to the execution of arbitrary code, theft of sensitive information, or unauthorized actions on behalf of the user.

The Cross-Site Scripting vulnerability in materialize-css allows attackers to inject and execute arbitrary JavaScript code on web pages that utilize the autocomplete component. This can lead to the theft of sensitive user information or unauthorized actions performed on behalf of the user.

Currently, there is no fix available for this vulnerability in materialize-css. It is recommended to consider using an alternative module that provides proper input sanitization until a fix is made available by the package maintainers.

To protect your application from this vulnerability, it is recommended to implement server-side input validation and sanitization techniques. Additionally, consider using a library like DOMPurify to sanitize user input before displaying it to users.

Related vulnerabilities

Recent vulnerabilities recorded for materialize-css.

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