ghsa-p239-93f7-h6xf
Vulnerability from github
Published
2020-09-01 15:30
Modified
2021-09-23 21:32
VLAI Severity ?
Summary
Cross-Site Scripting in swagger-ui
Details
Affected versions of swagger-ui
contain a cross-site scripting vulnerability in the key names of a specific nested object in the JSON document.
Proof of Concept
The vulnerable object structure is:
{
"definitions": {
"arbitraryVal": {
"properties": {
"<INJECTABLE_KEY_NAME>": "LoremIpsum"
}
}
}
}
Malicious JSON documents can be loaded in by providing a URL to them in the url
query string parameter.
Recommendation
Update to version 2.2.1 or later.
{ "affected": [ { "database_specific": { "last_known_affected_version_range": "\u003c= 2.2.0" }, "package": { "ecosystem": "npm", "name": "swagger-ui" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.2.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2016-5682" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2020-08-31T18:11:42Z", "nvd_published_at": null, "severity": "CRITICAL" }, "details": "Affected versions of `swagger-ui` contain a cross-site scripting vulnerability in the key names of a specific nested object in the JSON document.\n\n\n## Proof of Concept\nThe vulnerable object structure is:\n```\n{\n \"definitions\": {\n \"arbitraryVal\": {\n \"properties\": {\n \"\u003cINJECTABLE_KEY_NAME\u003e\": \"LoremIpsum\"\n }\n }\n }\n}\n```\nMalicious JSON documents can be loaded in by providing a URL to them in the `url` query string parameter.\n\n\n\n## Recommendation\n\nUpdate to version 2.2.1 or later.", "id": "GHSA-p239-93f7-h6xf", "modified": "2021-09-23T21:32:17Z", "published": "2020-09-01T15:30:58Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2016-5682" }, { "type": "WEB", "url": "https://github.com/swagger-api/swagger-ui/issues/1865" }, { "type": "WEB", "url": "https://community.rapid7.com/community/infosec/blog/2016/09/02/r7-2016-19-persistent-xss-via-unescaped-parameters-in-swagger-ui" }, { "type": "PACKAGE", "url": "https://github.com/swagger-api/swagger-ui" }, { "type": "WEB", "url": "https://www.npmjs.com/advisories/126" } ], "schema_version": "1.4.0", "severity": [], "summary": "Cross-Site Scripting in swagger-ui" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…