Universal XSS in UC Browser for Android via ucapi Bridge
A Universal Cross-Site Scripting (UXSS) vulnerability, CVE-2026-78997, allows attackers to bypass the Same-Origin Policy in UC Browser for Android by exploiting a flaw in the ucapi login callback mechanism.
CVE search metadata
CVE search record: CVE-2026-78997. Severity: critical. CVSS: 9.3. EPSS: 0.28%. KEV: no. Product: UC Browser (<= 13.7.8.1314). Brief: Universal XSS in UC Browser for Android via ucapi Bridge. Brief link: https://feed.craftedsignal.io/briefs/2026-09-cve-2026-78997/
CVE-2026-78997 is a high-severity Universal Cross-Site Scripting (UXSS) vulnerability discovered in UC Browser for Android (version 13.7.8.1314 and likely earlier). The flaw exists within the application's privileged ucapi JavaScript bridge, specifically related to how the account.openLoginWindow API handles login callbacks. Attackers can leverage a reflected XSS vulnerability on the whitelisted domain mtmsg.uc.cn to register malicious JavaScript as a callback in native memory. Due to an implementation error where the callback is stored with an empty URL guard, it persists across page navigations. When a user interacts with the native login dialog and subsequently dismisses it, the browser executes the stored callback via WebView.evaluateJavascript() within the origin of the currently loaded page. This mechanism effectively allows an attacker to execute arbitrary code within the context of any destination website, bypassing the browser's Same-Origin Policy.
Attack Chain
- Attacker crafts a malicious URL targeting the reflected XSS parameter on the bridge-whitelisted domain
mtmsg.uc.cn. - The malicious URL triggers the
account.openLoginWindowbridge API within the UC Browser environment. - The attacker-supplied JavaScript payload is stored in the application's native memory as a callback.
- The application navigates to a victim website (e.g., a banking site or webmail) chosen by the attacker.
- The attacker lures the user into opening the native login dialog provided by the
ucapibridge. - The user dismisses the dialog (e.g., presses the 'X' button or taps outside the window).
- The application dispatches the stored callback, which executes the malicious JavaScript payload.
- The payload runs in the origin context of the victim website, facilitating data theft or unauthorized actions.
Impact
Successful exploitation allows for the execution of arbitrary JavaScript in the context of any website visited by the user. This grants an attacker the ability to steal sensitive session cookies, tokens, or personal information, as well as perform actions on behalf of the user, such as modifying account settings or initiating fraudulent transactions. This vulnerability is particularly dangerous for users of mobile banking or sensitive web-based services on affected versions of UC Browser.
Recommendation
- Update UC Browser for Android to the latest patched version available from the vendor.
- If an update is not immediately available, restrict the use of the browser for accessing sensitive web services.
- Monitor device-level logs for signs of suspicious
WebViewactivity if using advanced mobile threat defense tooling. - Educate users to avoid clicking suspicious links that may redirect to
mtmsg.uc.cnwhile using the browser.
Mitigations
Upgrade UC Browser to the latest available version.
CVE-2026-78997