← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

uBlock Origin Universal XSS Vulnerability Fixed in Firefox MV2 and MV3 Versions

🔄 Updated 5d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Vulnerability allowed malicious sites to inject trusted filters.
  • Trusted filters could execute arbitrary JavaScript on any website.
  • Affected uBlock Origin MV2 (Firefox) and uBO Lite (MV3).
  • Issue has been fixed; details available in GitHub advisory.

Vulnerability Discovery

A one-click universal XSS issue was identified in uBlock Origin. This vulnerability allowed a malicious website to manipulate the extension into adding arbitrary trusted filters. These trusted filters could then inject JavaScript code into other web pages, enabling the malicious site to execute arbitrary JavaScript within the context of any website.

Affected Versions and Resolution

The primary vulnerability affected the MV2 Firefox version of uBlock Origin. A similar, though less severe, issue was also present in the MV3 version, uBO Lite. The issue has since been resolved, and further details are available in the GitHub advisory.

Attack Mechanism

The attack exploited uBlock Origin's element picker, which is implemented via an injected iframe. The malicious website would first determine the element picker's URL, then embed it in an invisible iframe. It would then programmatically drive the picker to insert a desired filter and position the invisible iframe to trick the user into clicking an invisible 'Create' button, thereby installing the malicious filter.

Extracting Extension UUID

To execute the attack, the extension's internal UUID was required. On Firefox, this UUID is random per installation. The attacker could extract this UUID by exploiting a default uBO filter rule (lootdest.*##+js(no-fetch-if, adsbygoogle, war:googlesyndication_adsbygoogle.js)) which hooks `fetch`. This hook makes an XHR request to a URL containing the extension UUID, which the attacker's website could then intercept by hooking `XMLHttpRequest.prototype.open`.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 21

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Primary sources

GitHub gorhill/uBlock

Reporting from

A universal cross-site scripting (XSS) vulnerability was discovered and fixed in uBlock Origin, affecting both its MV2 Firefox version and MV3 uBO Lite. The flaw allowed malicious websites to inject arbitrary JavaScript into any site by tricking the extension into adding trusted filters, which could then execute code in the context of other pages.