{"id":"GHSA-v9wp-8r97-v6xg","aliases":["GHSA-v9wp-8r97-v6xg"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in jquery.json-viewer","summary":"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: \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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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: \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.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T17:17:00.000Z","modified":"2020-08-31T18:44:56.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.3.0"}],"ecosystem":"npm","package":"jquery.json-viewer","purl":"pkg:npm/jquery.json-viewer","source":"ghsa"}],"references":[{"url":"https://www.npmjs.com/advisories/1036","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v9wp-8r97-v6xg","url":"https://github.com/advisories/GHSA-v9wp-8r97-v6xg","licence":"CC-BY-4.0","modified":"2020-08-31T18:44:56.000Z"}],"updatedAt":"2026-11-25T22:56:46.617Z"}