CVE-2019-11002: Materialize css Cross-Site Scripting Vulnerability
MODERATECVE-2019-11002 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Materialize css libraries in the npm ecosystem. The issue involves materialize-css vulnerable to cross-site scripting in tooltip component. Remediation is available by upgrading affected packages to version 1.1.0-alpha.
CVE-2019-11002 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2019-11002
To remediate this vulnerability, upgrade all affected Materialize css 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 materialize-css@Latest secure release
npm install @materializecss/materialize@1.1.0-alpha
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls materialize-css
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-11002, inspect your project dependencies using npm:
npm ls materialize-css
Analyze the terminal output to locate any version of Materialize css in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0-alpha), your application is affected.
Note: The npm ls materialize-css 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 Materialize css, 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
CVE-2019-11002 Affected Materialize css Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
materialize-css
|
npm |
≤ 1.0.0
|
|
|
@materializecss/materialize
|
npm |
< 1.1.0-alpha
|
1.1.0-alpha
|
References
Frequently Asked Questions
What is CVE-2019-11002?
Which Materialize css versions are affected?
What version fixes CVE-2019-11002?
Is materialize-css affected?
Is @materializecss/materialize affected?
What is the CVSS score of CVE-2019-11002?
What CWE is associated with CVE-2019-11002?
How can I check npm dependencies for CVE-2019-11002?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-98f7-p5rc-jx67",
"modified" : "2023-08-28T15:34:40Z",
"published" : "2019-04-09T19:44:40Z",
"aliases" : [ "CVE-2019-11002" ],
"summary" : "Materialize-css vulnerable to Cross-site Scripting in tooltip component",
"details" : "All versions of `materialize-css` are vulnerable to Cross-Site Scripting. The `tooltip` component does not sufficiently sanitize user input, allowing an attacker to execute arbitrary JavaScript code if the malicious input is rendered by a user.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "materialize-css"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@materializecss/materialize"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0-alpha"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11002"
}, {
"type" : "WEB",
"url" : "https://github.com/Dogfalo/materialize/issues/6286"
}, {
"type" : "WEB",
"url" : "https://github.com/materializecss/materialize/pull/49"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Dogfalo/materialize"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-98f7-p5rc-jx67"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-MATERIALIZECSS-174148"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/818"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:27:50Z",
"nvd_published_at" : null
}
}