{"cve":"CVE-2017-16022","nvd":{"published":"2018-06-04T19:29:01.350","modified":"2026-06-17T01:08:39.430","status":"Modified","description":"Morris.js creates an svg graph, with labels that appear when hovering over a point. The hovering label names are not escaped in versions 0.5.0 and earlier. If control over the labels is obtained, script can be injected. The script will run on the client side whenever that specific graph is loaded.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/morrisjs/morris.js/pull/464","https://nodesecurity.io/advisories/307","https://github.com/morrisjs/morris.js/pull/464","https://nodesecurity.io/advisories/307"],"products":["morris.js_project:morris.js"],"source":"nvd","synced_at":"2026-10-19T20:50:40.212176939+00:00"},"epss":{"cve":"CVE-2017-16022","score":0.00891,"percentile":0.59391,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fwx5-5fqj-jv98","url":"https://osv.dev/vulnerability/GHSA-fwx5-5fqj-jv98","summary":"Cross-Site Scripting in morris.js","modified":"2023-11-08T03:59:00.193523Z","packages":[{"ecosystem":"npm","name":"morris.js","purl":"pkg:npm/morris.js","ranges":["0.5.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}