Skip to content

uBlock Origin patches a universal XSS bug in its element picker

A hijacked element picker let any website register a trusted filter and run arbitrary JavaScript on other sites, with one click. The fix landed in 1.75.4.

A security researcher published details this week of a universal cross-site scripting bug in uBlock Origin’s element picker, the tool that opens when you right-click a page to hide an element. Any website could iframe that picker, pull its internal UUID from a predictable resource path, and feed it messages that got registered as a “trusted” filter, the same trust level normally reserved for rules a user writes themselves. Because trusted filters can include JavaScript, one click anywhere on the page was enough to run arbitrary script on any site the victim later visited.

The bug hit uBlock Origin’s Firefox and Chromium MV2 builds. Firefox’s is still the browser’s most-installed extension, with over 11 million active users. A related, milder issue also affected uBO Lite, the MV3 fork Chrome users are now on. The project’s advisory, GHSA-cmqw-9r2w-6wv2, rates it High. It was reported on 1 November and patched two days later in version 1.75.4, which now makes the element picker present a secret token before it can add any filter.

Why it matters: this was a bug in the privileged UI surface an extension exposes to every page it runs on, not in the filter rules themselves. If you build or audit a browser extension with any picker, inline editor or iframe-based UI, the lesson holds: never trust a postMessage just because it arrived on the channel you expected.

The caveat: the fix shipped two weeks before this public writeup, so most installs have already auto-updated past the vulnerable version.

Share

Related reading

More from The Wire

All briefs