GHSA-p239-93f7-h6xf

    Dashboard / Vulnerabilities / GHSA-p239-93f7-h6xf

    GHSA-p239-93f7-h6xf

    Published: 1 Sept 2020Last Modified: 8 Nov 2023
    Aliases:

    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 packages

    Package

    Name: swagger-ui

    Purl: pkg:npm/swagger-ui

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.2.1

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High