Vulnerabilities in pkg:npm/highcharts
PACKAGEGHSA-gr4j-r575-g665 is a HIGH (CVSS 8.7) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Highcharts libraries in the npm ecosystem. The issue involves cross-site scripting in highcharts. Remediation is available by upgrading affected packages to version 7.2.2, 8.1.1.
pkg:npm/highcharts
Vulnerability advisories affecting package pkg:npm/highcharts. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gr4j-r575-g665 | - | HIGH | Cross-Site Scripting in highcharts |
| GHSA-8j65-4pcq-xq95 | CVE-2021-29489 | HIGH | Options structure open to Cross-site Scripting if passed unfiltered |
| GHSA-xmc8-cjfr-phx3 | CVE-2018-20801 | HIGH | Regular Expression Denial of Service in highcharts |
| GHSA-m45f-4828-5cv5 | - | MODERATE | Regular Expression Denial of Service in highcharts |
GHSA-gr4j-r575-g665 at a Glance
Security Impact
CVSS: 8.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix GHSA-gr4j-r575-g665
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@7.2.2
npm install highcharts@8.1.1
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 GHSA-gr4j-r575-g665, 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 7.2.2), 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-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 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
GHSA-gr4j-r575-g665 Affected Highcharts Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
highcharts
|
npm |
< 7.2.2
|
7.2.2
|
|
highcharts
|
npm |
≥ 8.0.0
< 8.1.1
|
8.1.1
|
References
Frequently Asked Questions
What is GHSA-gr4j-r575-g665?
Which Highcharts versions are affected?
What version fixes GHSA-gr4j-r575-g665?
Is highcharts affected?
What is the CVSS score of GHSA-gr4j-r575-g665?
What CWE is associated with GHSA-gr4j-r575-g665?
How can I check npm dependencies for GHSA-gr4j-r575-g665?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gr4j-r575-g665",
"modified" : "2023-11-10T18:07:18Z",
"published" : "2020-08-25T14:04:47Z",
"aliases" : [ ],
"summary" : "Cross-Site Scripting in highcharts",
"details" : "Versions of `highcharts` prior to 7.2.2 or 8.1.1 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize `href` values and does not restrict URL schemes, allowing attackers to execute arbitrary JavaScript in a victim's browser if they click the link.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "highcharts"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.2.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "highcharts"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/highcharts/highcharts/issues/13559"
}, {
"type" : "WEB",
"url" : "https://github.com/highcharts/highcharts/commit/55c39dd55f12ce8dfab84f8ec13ad81423bee9f5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/highcharts/highcharts"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-HIGHCHARTS-571995"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-25T14:01:38Z",
"nvd_published_at" : null
}
}