CVE-2018-20801: Highcharts Denial of Service Vulnerability
HIGHCVE-2018-20801 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Highcharts libraries in the npm ecosystem. The issue involves regular expression denial of service in highcharts. Remediation is available by upgrading affected packages to version 6.1.0.
CVE-2018-20801 at a Glance
Security Impact
CVSS: 7.5
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:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2018-20801
To remediate this vulnerability, upgrade all affected Highcharts 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 highcharts@6.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls highcharts
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-20801, inspect your project dependencies using npm:
npm ls highcharts
Analyze the terminal output to locate any version of Highcharts in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.0), your application is affected.
Note: The npm ls highcharts 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-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Highcharts, 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-2018-20801 Affected Highcharts Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
highcharts
|
npm |
< 6.1.0
|
6.1.0
|
References
Frequently Asked Questions
What is CVE-2018-20801?
Which Highcharts versions are affected?
What version fixes CVE-2018-20801?
Is highcharts affected?
What is the CVSS score of CVE-2018-20801?
What CWE is associated with CVE-2018-20801?
How can I check npm dependencies for CVE-2018-20801?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xmc8-cjfr-phx3",
"modified" : "2021-09-21T22:36:57Z",
"published" : "2019-03-18T15:59:32Z",
"aliases" : [ "CVE-2018-20801" ],
"summary" : "Regular Expression Denial of Service in highcharts",
"details" : "Versions of `highcharts` prior to 6.1.0 are vulnerable to Regular Expression Denial of Service (ReDoS). Untrusted input may cause catastrophic backtracking while matching regular expressions. This can cause the application to be unresponsive leading to Denial of Service.\n\n\n## Recommendation\n\nUpgrade to version 6.1.0 or higher.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "highcharts"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-20801"
}, {
"type" : "WEB",
"url" : "https://github.com/highcharts/highcharts/commit/7c547e1e0f5e4379f94396efd559a566668c0dfa"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-xmc8-cjfr-phx3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/highcharts/highcharts"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20190715-0001"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/npm:highcharts:20180225"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/793"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T22:03:47Z",
"nvd_published_at" : null
}
}