CVE-2017-16022 json
Cross-Site Scripting in morris.js
published 8y ago modified 4mo ago also GHSA-fwx5-5fqj-jv98 , EUVD-2018-0750
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- github.com/morrisjs/morris.js#464 pull request
Is CVE-2017-16022 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.89% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | morris.js | 1 listed version |
no fix listed |
Affected products
- HackerOne Morris.js node module
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/morrisjs/morris.js/pull/464
web, third-party-advisory
-
nodesecurity.io
/advisories/307
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-16022
advisory
-
github.com
/advisories/GHSA-fwx5-5fqj-jv98
advisory
-
npmjs.com
/advisories/307
web
Sources
- CVE List CVE-2017-16022
- GitHub Advisory GHSA-fwx5-5fqj-jv98
- NVD CVE-2017-16022
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.