Vulnerability DatabaseGHSA-fj93-7wm4-8x2g

GHSA-fj93-7wm4-8x2g
JavaScript vulnerability analysis and mitigation

Overview

All versions of jQuery Mobile (JQM) are vulnerable to Cross-Site Scripting (XSS) via crafted URLs, identified as GHSA-fj93-7wm4-8x2g. The vulnerability was discovered in 2019 and affects all versions of the library. The issue stems from the package's handling of content in location.hash and its subsequent processing of XHR responses (GitHub Advisory, Snyk Report).

Technical details

The vulnerability occurs when the package checks for content in location.hash and if a URL is found, it performs an XMLHttpRequest (XHR) to the URL and renders the response with innerHTML. The critical flaw is that it fails to validate the Content-Type of the response, which allows attackers to include malicious payloads as part of query parameters that are reflected back to the user. For example, a response such as {"q":"","results":[]} would be parsed as HTML and any embedded JavaScript payload would be executed (GitHub Advisory, Gist Details).

Impact

The vulnerability allows attackers to perform cross-site scripting attacks on applications using jQuery Mobile. In versions up to and including 1.2.1, the only requirement is that the library is included in a web application. For versions > 1.2.1, the web application must also contain a server-side API that reflects back user input as part of an HTTP response of any type (Gist Details).

Exploitability

The vulnerability is exploitable in two ways: First, through any same-origin URL that reflects back user input from a GET parameter, and second, through a broken URL parsing implementation that fails in basic forms of URL validation. The second technique specifically affects versions ≤ 1.2.1 and requires no server-side vulnerability (Gist Details).

Mitigation and workarounds

No official patch is currently available as jQuery Mobile is no longer actively maintained. The recommended action is to migrate to an alternative framework. A fix was pushed to the master branch that includes Content-Type validation before parsing AJAX responses as HTML, but this was not officially released (GitHub PR, GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-88062CRITICAL9.5
  • JavaScript logoJavaScript
  • omniroute
NoNoSep 10, 2026
CVE-2026-61534CRITICAL9.1
  • JavaScript logoJavaScript
  • yayson
NoYesSep 11, 2026
CVE-2026-59973HIGH8.5
  • JavaScript logoJavaScript
  • @frontmcp/adapters
NoYesSep 11, 2026
CVE-2026-59960HIGH7.5
  • JavaScript logoJavaScript
  • @argos-ci/core
NoYesSep 10, 2026
CVE-2026-59965HIGH7.1
  • JavaScript logoJavaScript
  • @jhb.software/payload-alt-text-plugin
NoNoSep 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management