Advisory

GHSA-fwx5-5fqj-jv98

Also known as: CVE-2017-16022

Summary

Cross-Site Scripting in morris.js

Details

Affected versions of morris.js are vulnerable to cross-site scripting attacks in labels that appear when hovering over a particular point on a generated graph. The text content of these labels is not escaped, so 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.

Recommendation

A patch for this vulnerability was created in 2014, but has still not been published to npm. In order to mitigate this issue effectively, install the library from github via:

npm i morrisjs/morris.js -s

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-11-09 17:46 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

morris.js

npm · All systems

Affected

  • Versions: 0.5.0

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences