GHSA-V9WP-8R97-V6XG
Vulnerability from github – Published: 2020-09-03 17:17 – Updated: 2020-08-31 18:44
VLAI?
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 <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.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "jquery.json-viewer"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:44:56Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"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(\u0027xss\u0027) \\\"\"\n}\n```\n\nThis may lead to arbitrary JavaScript execution in a victim\u0027s browser.\n\n\n## Recommendation\n\nUpgrade to version 1.3.0 or later.",
"id": "GHSA-v9wp-8r97-v6xg",
"modified": "2020-08-31T18:44:56Z",
"published": "2020-09-03T17:17:00Z",
"references": [
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/1036"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Cross-Site Scripting in jquery.json-viewer"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…