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://nodesecurity.io/advisories/307
https://github.com/morrisjs/morris.js/pull/464
Related Vulnerabilities
CVE-2014-3004 Vulnerability in maven package org.codehaus.castor:castor-xml
CVE-2022-34662 Vulnerability in maven package org.apache.dolphinscheduler:dolphinscheduler-common
CVE-2022-35131 Vulnerability in npm package joplin
CVE-2017-16071 Vulnerability in npm package nodemailer-js
CVE-2019-1003003 Vulnerability in maven package org.jenkins-ci.main:jenkins-core