Live threats

All CVEs / Morris.js Project

CVE-2017-16022Morris.js Project Morris.js

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
0.9%
probability of exploitation in 30 days · percentile 57
Auth required
No
Published
Jun 4, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Morris.js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm morris.js 0.5.0 no fixed version —

Per OSV / GitHub Advisories (GHSA-fwx5-5fqj-jv98). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
morris.js_projectmorris.js≤ 0.5.0

Official sources

References

Links published by the sources. Open them with care.