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.
Remediation
References
https://github.com/morrisjs/morris.js/pull/464
https://nodesecurity.io/advisories/307
Related Vulnerabilities
CVE-2018-13339 Vulnerability in maven package org.webjars.bower:angular-redactor
CVE-2016-1000232 Vulnerability in npm package tough-cookie
CVE-2018-11040 Vulnerability in maven package org.springframework:spring-web
CVE-2022-39366 Vulnerability in maven package io.acryl:datahub-client
CVE-2014-7810 Vulnerability in maven package org.apache.tomcat.embed:tomcat-embed-core