GHSA-fj93-7wm4-8x2g

    Dashboard / Vulnerabilities / GHSA-fj93-7wm4-8x2g

    GHSA-fj93-7wm4-8x2g

    Published: 2 Sept 2020Last Modified: 27 Sept 2021

    Summary: Cross-Site Scripting in jquery-mobile

    Details: All version of `jquery-mobile` are vulnerable to Cross-Site Scripting. The package checks for content in `location.hash` and if a URL is found it does an XmlHttpRequest (XHR) to the URL and renders the response with `innerHTML`. It fails to validate the `Content-Type` of the response, allowing attackers to include malicious payloads as part of query parameters that are reflected back to the user. A response such as `{"q":"<iframe/src='javascript:alert(1)'></iframe>","results":[]}` would be parsed as HTML and the JavaScript payload executed. ## Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.

    Affected packages

    Package

    Name: jquery-mobile

    Purl: pkg:npm/jquery-mobile

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    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
    GHSA-fj93-7wm4-8x2g | CVE-DB