Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXY5d3AtOHI5Ny12Nnhn

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.

Permalink: https://github.com/advisories/GHSA-v9wp-8r97-v6xg
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXY5d3AtOHI5Ny12Nnhn
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 3 years ago
Updated: over 1 year ago


Identifiers: GHSA-v9wp-8r97-v6xg
References: Blast Radius: 0.0

Affected Packages

npm:jquery.json-viewer
Dependent packages: 12
Dependent repositories: 101
Downloads: 25,718 last month
Affected Version Ranges: < 1.3.0
Fixed in: 1.3.0
All affected versions: 1.0.0, 1.1.0, 1.2.0
All unaffected versions: 1.3.0, 1.4.0, 1.5.0