logo

GHSA-v9wp-8r97-v6xg jquery.json-viewer

Package

Manager: npm
Name: jquery.json-viewer
Vulnerable Version: >=0 <1.3.0

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:U/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

Cross-Site Scripting in jquery.json-viewer 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.

Metadata

Created: 2020-09-03T17:17:00Z
Modified: 2020-08-31T18:44:56Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-v9wp-8r97-v6xg/GHSA-v9wp-8r97-v6xg.json
CWE IDs: ["CWE-79"]
Alternative ID: N/A
Finding: F008
Auto approve: 1