{"id":"GHSA-v9wp-8r97-v6xg","summary":"Cross-Site Scripting in jquery.json-viewer","details":"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.","modified":"2020-08-31T18:44:56Z","published":"2020-09-03T17:17:00Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:44:56Z"},"references":[{"type":"WEB","url":"https://www.npmjs.com/advisories/1036"}],"affected":[{"package":{"name":"jquery.json-viewer","ecosystem":"npm","purl":"pkg:npm/jquery.json-viewer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-v9wp-8r97-v6xg/GHSA-v9wp-8r97-v6xg.json"}}],"schema_version":"1.9.0"}