One click on a malicious site let attackers run JavaScript on any domain through uBlock Origin

Universal XSS in uBlock Origin from website-driven element picker

One click on a malicious site let attackers run JavaScript on any domain through uBlock Origin

A researcher found a universal XSS in uBlock Origin's Firefox build: a malicious site can leak the extension's random UUID, embed the element picker in an invisible iframe, and drive it to add a trusted filter that injects JavaScript into any site. The MV3 version, uBO Lite, had a milder variant. GPT-5.6 Sol located the flaw; it is now patched.

This is where the main issue is - the element picker shouldn't accept messages from the attacker.
  1. ByteOfWood

    I never really loved how extensions have to put their interfaces in the website's DOM if they want to be able to work with the page's elements, like this selector, or a password manager's suggested logins. Especially in the password manager's scenario, it could leak what accounts you have to a given website to that website itself, if the page is looking for new DOM elements. Not exactly a showstopper vulnerability, but it's not a good thing.

  2. taylorfinley

    Really love the "I wrote all the prose, gpt wrote the POC" disclaimer, I would love to see more of those kinds of signals on human authored content.

  3. forgotmypw17

    For those checking (I still had the vulnerable version), you should be at these versions or higher:

    uBlock Origin: 1.75.4

    uBO Lite: 2026.1110.1816

  4. akersten

    So this seems totally solvable by the create-rule element living in the browser chrome instead of the website DOM... why aren't we doing that?

  5. hackerbone

    Browsers should implement something like a sandboxed DOM where execution is limited to a snapshot of the DOM. This would prevent most of the client side related vulnerabilities.

  6. user070223

    I've 3rd party frames blocked by default, which is good reminder to everyone that you can up one your blocking game with increasing the blocking mode level as described here https://github.com/gorhill/uBlock/wiki/Blocking-mode.

    One can have keyboard shortcut which automatically reduces that blocking level(may cause refresh) if something not right, or enable on domain basis. I got used to enabling stuff when have issues and it's not mentally taxing

  7. anthk

    I prefer the builtin Rust based (more performing) ad blocking engine from Waterfox and on top of these, instead of UBo, I uset NoScript. The most secure code it's the one which doesn't run.

  8. renehsz

    Is AdNauseam (a fork of uBlock Origin) also affected?

More from this day

2026-11-16