# GHSA-v9wp-8r97-v6xg: Cross-Site Scripting in jquery.json-viewer

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T17:17:00.000Z
- Modified: 2020-08-31T18:44:56.000Z
- Weaknesses: CWE-79

## 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.

(As written by GitHub Advisory Database.)

## Affected

- jquery.json-viewer (npm): before 1.3.0

## References

- <https://www.npmjs.com/advisories/1036> (web)

## Sources

- GitHub Advisory Database: [GHSA-v9wp-8r97-v6xg](https://github.com/advisories/GHSA-v9wp-8r97-v6xg), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-v9wp-8r97-v6xg · Whole record: https://cve.day/GHSA-v9wp-8r97-v6xg.json · Rebuilt by cve.day 2026-11-25T22:56:46.617Z
