CVE-2017-16022Morris.js Project Morris.js
Medium 6.1 No auth needed
Follow: this CVE · Morris.js Project · Morris.js Project Morris.js We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Morris.js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| morris.js_project | morris.js | ≤ 0.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- nodesecurity.io Third Party Advisory