Are you affected by GHSA-FJ93-7WM4-8X2G?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)GHSA-FJ93-7WM4-8X2G
Cross-Site Scripting in jquery-mobile
Overview
Description
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.
Source: OX vulnerability database
Severity
HIGH
No CVSS vector in the source. Severity comes from the advisory.
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | jquery-mobile | >=0 | No fix yet |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- gist.github.com https://gist.github.com/jupenur/e5d0c6f9b58aa81860bf74e010cf1685
- github.com https://github.com/jquery/jquery-mobile
- github.com https://github.com/jquery/jquery-mobile/commit/b0d9cc758a48f13321750d7409fb7655dcdf2b50
- github.com https://github.com/jquery/jquery-mobile/issues/8640
- github.com https://github.com/jquery/jquery-mobile/pull/8649
- github.com https://github.com/jquery/jquery-mobile/pull/8650
- snyk.io https://snyk.io/vuln/SNYK-JS-JQUERYMOBILE-174599
- www.npmjs.com https://www.npmjs.com/advisories/883
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.