On November 15 the uBlock Origin project published the details of a bug that let an ordinary website drive the extension's built-in element picker and add a filter that runs any JavaScript on other sites. The flaw affected the Firefox build and is already fixed. It is also a textbook case of postMessage trusting whoever sends the message.
How a website could take over the uBlock Origin element picker
Security advisory GHSA-cmqw-9r2w-6wv2 is rated High and covers the Manifest V2 extension for Firefox. The report arrived by email on November 1. Versions up to and including 1.75.2 were vulnerable, and the fix shipped in 1.75.4 on November 3. The details were held back until the fixed releases were stable.
The researcher, Smitty van Bodegom, walks through the whole attack in a blog post. The element picker (the tool you click elements with to hide them) is a separate extension page inserted as an iframe. That page can ask the background script to add filters. To embed it, an attacker needs the extension's random ID, which differs on every Firefox install.
That ID could be extracted. A default rule swaps an ad script for an empty stand-in from inside the extension. The attacking page overrode XMLHttpRequest.prototype.open, triggered that request and read the missing ID straight out of the moz-extension:// address.
From there it was straightforward. The page loaded the picker in an invisible iframe (opacity: 0) and talked to it through postMessage and a MessageChannel. The picker never checked who was on the other end. The opt field, meant for a request type such as image, accepted a newline, so a harmless looking filter could smuggle in a second one that injects a script into any domain. Filters created in the picker are treated as trusted, and saving one took a single user click on the hidden Create button.
What the fixes changed
The advisory lists four changes. In 1.75.2, scriptlets stopped using XHR methods that a page could replace. In 1.75.4, the picker only starts with a secret token from the extension's own script, not from the page. Version 1.76.0 validates new filters and blocks war: rules for now. Release 1.76.4 from November 15 addresses the remaining reported security issues, according to its notes.
The researcher says a similar but less serious problem affected uBO Lite (the Manifest V3 version), and the advisory adds that on the MV2 build for Chromium the same trick could leak the extension's long secret for its bundled resources.
How the bug was found is interesting too. According to the author, GPT-5.6 Sol did most of the work of finding it and Claude wrote most of the proof-of-concept code. The author verified the flaw personally and wrote the whole post. In my view that is a sensible split: the AI searches, a person verifies and reports.
What this means if you are learning to code
If you use uBlock Origin in Firefox, check in the add-ons menu that you have at least 1.75.4. Extensions from AMO update themselves, so you most likely do.
The bug holds three lessons for any web project:
- Check who sent the message. When you write
window.addEventListener('message', ...), compareevent.originwith a list of allowed origins and treatevent.dataas input from a stranger. The uBlock Origin picker skipped this, and that was the root cause. - Validate the input, not just what you display. A field meant for a request type accepted a whole second filter because nothing checked it for a newline.
- Watch out for clickjacking. An invisible iframe over a button is an old trick. You protect your own pages with the
Content-Security-Policy: frame-ancestorsheader.
To follow this code you need solid browser JavaScript: events, prototypes and iframes. If that is new to you, start with the JavaScript and TypeScript course and the JavaScript documentation. Our JavaScript for beginners guide is a good companion. Extension internals can wait.
Also today
- NestJS 12.5.0 tightens default limits. The November 12 release lowers the default
maxPayloadofWsAdapterto 1 MB (it was 100 MB), and a TCP server with no host set now listens on localhost only. Update@nestjs/coreand the platform packages together. Release notes - Qwen4-Max lands on Vercel AI Gateway. Vercel added the first Qwen4 model: a reasoning model with native vision and a 1 million token context, built for coding and long agent tasks and usable in Claude Code, Codex and Cursor. Alibaba's own documentation still describes it as a preview; more on the Qwen models in our guide. Vercel, Alibaba Cloud
- clice 1.0, a new language server for C and C++. The first stable release is built on Clang, written in C++23 and compiles code in separate processes, so a compiler crash does not take down the whole server. The VS Code extension is on the Marketplace and on Open VSX. Release v1.0.0, author's blog
- Datasette 1.0a43 adds page transitions. The data publishing tool now streams CSV and TSV exports, uses CSS cross-document view transitions and fixes a leak of the titles and SQL of private stored queries. Version 0.65.6 backports a different security fix to the older line. Datasette 1.0a43, Datasette 0.65.6
Frequently asked questions
Do I need to do anything if I use uBlock Origin?
You only need a current version of the extension. The flaw is fixed from 1.75.4 onward, and the latest release from November 15 is 1.76.4. Firefox updates it from AMO automatically.
What is universal XSS?
Regular XSS lets an attacker inject a script into one vulnerable site. Universal XSS abuses a bug in the browser or in an extension, so the attacker can run code on any site, even one with no flaw of its own.
Did the flaw affect Chrome?
The attack as described targeted Firefox. The researcher says uBO Lite, the Manifest V3 version used in Chrome, had a similar but less serious problem, and the advisory mentions a leaked secret in the older MV2 build for Chromium.
Sources
- Universal XSS from website-driven element picker (GHSA-cmqw-9r2w-6wv2), uBlock Origin on GitHub, November 15, 2026
- Universal XSS in uBlock Origin from website-driven element picker, Smitty van Bodegom, November 15, 2026
- uBlock Origin 1.76.4, uBlock Origin on GitHub, November 15, 2026
- NestJS v12.5.0, NestJS on GitHub, November 12, 2026
- Qwen4-Max now available on AI Gateway, Vercel, November 15, 2026
- qwen4-max-preview, Alibaba Cloud Model Studio, November 16, 2026
- clice v1.0.0, clice on GitHub, November 15, 2026
- clice v1.0 Released: Welcome to Modern C++, ykiko, November 15, 2026
- Release: datasette 1.0a43, Simon Willison, November 15, 2026
- Datasette 0.65.6, Datasette on GitHub, November 15, 2026
This article was prepared with the help of AI from primary sources and reviewed by the CodeWorlds editorial team.