{"id":"GHSA-v9wp-8r97-v6xg","aliases":[],"status":"published","title":"Cross-Site Scripting in jquery.json-viewer","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 `\u003ca\u003e` tag. This allows attackers to create malicious links with JSON payloads such as: \n```\n{\n  \"foo\": \"https://bar.com\\\" onmouseover=alert('xss') \\\"\"\n}\n```\n\nThis may lead to arbitrary JavaScript execution in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 1.3.0 or later.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-03T17:17:00Z","modified":"2023-01-09T05:03:57Z","fixes":[{"ecosystem":"npm","package":"jquery.json-viewer","fixed_in":["1.3.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"jquery.json-viewer","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}]},{"source":"osv","ecosystem":"npm","package":"jquery.json-viewer","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1036","tags":["web"]},{"url":"https://github.com/advisories/GHSA-v9wp-8r97-v6xg"}],"sources":{"ghsa":[{"id":"GHSA-v9wp-8r97-v6xg","title":"Cross-Site Scripting in jquery.json-viewer","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 `\u003ca\u003e` tag. This allows attackers to create malicious links with JSON payloads such as: \n```\n{\n  \"foo\": \"https://bar.com\\\" onmouseover=alert('xss') \\\"\"\n}\n```\n\nThis may lead to arbitrary JavaScript execution in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 1.3.0 or later.","status":"published","published":"2020-09-03T17:17:00Z","modified":"2023-01-09T05:03:57Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:07.581563Z"}],"osv":[{"id":"GHSA-v9wp-8r97-v6xg","title":"Cross-Site Scripting in jquery.json-viewer","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 `\u003ca\u003e` tag. This allows attackers to create malicious links with JSON payloads such as: \n```\n{\n  \"foo\": \"https://bar.com\\\" onmouseover=alert('xss') \\\"\"\n}\n```\n\nThis may lead to arbitrary JavaScript execution in a victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 1.3.0 or later.","status":"published","published":"2020-09-03T17:17:00Z","modified":"2020-08-31T18:44:56Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:56.981655Z"}]}}
