GHSA-v9wp-8r97-v6xg
high
Cross-Site Scripting in jquery.json-viewer
- Severity
- high rating by GitHub
- Published
- Last changed
Description
Versions of jquery.json-viewer prior to 1.3.0 are vulnerable to Cross-Site Scripting (XSS). The package insufficiently sanitizes user input when creating links, and concatenates the user input in an <a> tag. This allows attackers to create malicious links with JSON payloads such as:
{
"foo": "https://bar.com\" onmouseover=alert('xss') \""
}
This may lead to arbitrary JavaScript execution in a victim's browser.
Recommendation
Upgrade to version 1.3.0 or later.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| jquery.json-viewer (npm) | before 1.3.0 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-v9wp-8r97-v6xg changed 2020-08-31 | CC-BY-4.0 |