CVE-2016-5682 – swagger-ui
Package
Manager: npm
Name: swagger-ui
Vulnerable Version: >=0 <2.2.1
Severity
Level: Critical
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:U/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00688 pctl0.70849
Details
Cross-Site Scripting in swagger-ui 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.
Metadata
Created: 2020-09-01T15:30:58Z
Modified: 2021-09-23T21:32:17Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-p239-93f7-h6xf/GHSA-p239-93f7-h6xf.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-p239-93f7-h6xf
Finding: F008
Auto approve: 1