ghsa-fwx5-5fqj-jv98
Vulnerability from github
Published
2018-11-09 17:46
Modified
2020-08-31 18:18
VLAI Severity ?
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
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "morris.js"
},
"versions": [
"0.5.0"
]
}
],
"aliases": [
"CVE-2017-16022"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T21:35:38Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"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.\n\n\n## Recommendation\n\nA 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:\n```\nnpm i morrisjs/morris.js -s\n```",
"id": "GHSA-fwx5-5fqj-jv98",
"modified": "2020-08-31T18:18:39Z",
"published": "2018-11-09T17:46:30Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16022"
},
{
"type": "WEB",
"url": "https://github.com/morrisjs/morris.js/pull/464"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-fwx5-5fqj-jv98"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/307"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Cross-Site Scripting in morris.js"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…