uBlock Origin Universal XSS Vulnerability Disclosure

Vulnerability Overview

A critical universal cross-site scripting (XSS) vulnerability was identified in uBlock Origin (uBO) that allowed a malicious website to inject arbitrary trusted filters into the extension. By tricking the extension's element picker into accepting malicious input, an attacker could execute arbitrary JavaScript in the context of any website. This issue has been resolved in uBlock Origin version 1.75.4 and uBO Lite version 2026.1110.1816.

The Attack Vector

The vulnerability stemmed from how the uBlock Origin element picker—a tool used to block specific page elements—communicated with the extension's background script. The attack followed a multi-step process:

  1. UUID Extraction: The attacker identified the extension's internal, installation-specific UUID. This was possible because uBO's internal filter rules sometimes leaked the UUID through XHR requests, which a malicious site could intercept by hooking XMLHttpRequest.prototype.open.
  2. Iframe Embedding: Using the discovered UUID, the attacker embedded the extension's epicker-ui.html page within an invisible iframe on their malicious site.
  3. Message Injection: The attacker sent crafted postMessage events to the embedded picker. By manipulating the opt field in these messages, they injected a newline character followed by a malicious trusted filter (e.g., image\ngoogle.com##+js(trusted-rpnt, script, ...)).
  4. Execution: By overlaying the invisible iframe or tricking a user into clicking, the attacker could force the extension to save the malicious filter, leading to arbitrary code execution.

Security Implications and Discussion

The discovery highlights the inherent risks of browser extensions that require deep integration with the DOM to function. Because uBO requires broad permissions to inspect and modify page content, any vulnerability in its interface components can have significant security consequences.

Community discussion on Hacker News emphasized several key takeaways regarding this incident:

  • Extension Trust and Surface Area: Many users noted that the high level of trust granted to extensions makes them a prime target for supply-chain and logic attacks. As one commenter observed, "These risky integrations and extensions are a really fertile field for malware, spyware, and supply-chain attacks."
  • UUID Privacy: The discovery that the extension UUID could be leaked and used as a tracking identifier was a point of concern. Users were reminded that installing extensions can inadvertently create unique fingerprints.
  • Mitigation Strategies: Beyond updating to the patched versions, users suggested more aggressive security postures, such as blocking third-party iframes by default using uBO's dynamic filtering or utilizing separate browser profiles for different tasks to isolate potential threats.

Remediation

Users are advised to ensure their browser extensions are updated to the latest versions. If you are using the affected versions, you should update to at least:

  • uBlock Origin: 1.75.4
  • uBO Lite: 2026.1110.1816

To verify your version, navigate to your browser's extension management page (about:addons or chrome://extensions), check for updates, and ensure the latest patch is applied.

Sources

Related