Skip to content

Cross-Site Scripting in jquery.json-viewer

High severity GitHub Reviewed Published Sep 3, 2020 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

npm jquery.json-viewer (npm)

Affected versions

< 1.3.0

Patched versions

1.3.0

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.

References

Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 3, 2020
Last updated Jan 9, 2023

Severity

High

EPSS score

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-v9wp-8r97-v6xg

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.