Security mailing lists by PureSourceCode

GHSA-v9wp-8r97-v6xg

HIGH

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.

Published
3 Sep 2020
Last modified
31 Aug 2020
Weakness
CWE-79
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm jquery.json-viewer < 1.3.0 1.3.0

References

History

  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Sep 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.