Cross-Site Scripting Vulnerability in jquery-mobile

jquery-mobile Updated 02 Oct 2025

Summary

02/09/2020
HIGH
No i
High
Not published

GHSA-fj93-7wm4-8x2g: Cross-Site Scripting in jquery-mobile. Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

jquery-mobile is an open-source JavaScript library that provides a framework for creating mobile-friendly websites and web applications. It offers a variety of UI components and features to enhance the user experience on mobile devices. However, all versions of jquery-mobile are vulnerable to a Cross-Site Scripting (XSS) attack.

Vulnerability Detail

The vulnerability in jquery-mobile arises from its handling of content in the location.hash and subsequent rendering of the response using innerHTML. The package fails to validate the Content-Type of the response, allowing attackers to inject malicious payloads as part of query parameters. This can lead to the execution of arbitrary JavaScript code in the context of the user's browser, potentially compromising sensitive information or performing unauthorized actions.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As there is no official fix for this vulnerability, a possible workaround is to implement input validation and sanitization on the server-side to prevent the injection of malicious payloads. Additionally, consider implementing Content Security Policy (CSP) headers to restrict the execution of inline scripts and mitigate the impact of XSS attacks.

Conclusion

The Cross-Site Scripting vulnerability in jquery-mobile exposes applications to the risk of executing arbitrary JavaScript code. Currently, there is no fix available, and it is recommended to consider using an alternative package. Stay informed about security updates and follow best practices for input validation and content security to protect your application from XSS attacks. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for jquery-mobile →

Share this vulnerability

FAQ

The vulnerability allows attackers to execute arbitrary JavaScript code in the user's browser, potentially leading to the theft of sensitive information, session hijacking, or unauthorized actions on behalf of the user.

Yes, all versions of jquery-mobile are vulnerable to this Cross-Site Scripting (XSS) vulnerability.

No, there is currently no patch or update available to fix this vulnerability in jquery-mobile.

Consider using an alternative package until a fix is available. Implement input validation and sanitization on the server-side, and apply Content Security Policy (CSP) headers to mitigate the impact of XSS attacks.

You can find more information about this vulnerability in the official security advisory for jquery-mobile.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback