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

Original title: Universal XSS in uBlock Origin from website-driven element picker

> Hacker News story 50513160 · language: en · submitted 2026-11-16
> Web version: https://zeli.app/story/50513160
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 610 · by [zaik](<https://news.ycombinator.com/user?id=zaik>) · 💬 177
[original](<https://iter.ca/post/ubo-uxss/>) · [HN discussion](<https://news.ycombinator.com/item?id=50513160>)

## Summary

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.

## Key quote

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

## HN discussion (177 comments)

### [ByteOfWood](<https://news.ycombinator.com/item?id=50513505>)

> 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.

### [taylorfinley](<https://news.ycombinator.com/item?id=50513374>)

> 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.

### [forgotmypw17](<https://news.ycombinator.com/item?id=50513816>)

> 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

### [akersten](<https://news.ycombinator.com/item?id=50513700>)

> 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?

### [hackerbone](<https://news.ycombinator.com/item?id=50515768>)

> 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.

### [user070223](<https://news.ycombinator.com/item?id=50515367>)

> 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

### [anthk](<https://news.ycombinator.com/item?id=50516015>)

> 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.

### [renehsz](<https://news.ycombinator.com/item?id=50514737>)

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

---

## Cite

- Page: https://zeli.app/story/50513160
- Date: 2026-11-16
- Source: iter.ca (https://iter.ca/post/ubo-uxss/)
- Hacker News: https://news.ycombinator.com/item?id=50513160

## Other languages

- zh: https://zeli.app/zh/story/50513160 · markdown: https://zeli.app/zh/story/50513160.md
- ja: https://zeli.app/ja/story/50513160 · markdown: https://zeli.app/ja/story/50513160.md
- ko: https://zeli.app/ko/story/50513160 · markdown: https://zeli.app/ko/story/50513160.md
- de: https://zeli.app/de/story/50513160 · markdown: https://zeli.app/de/story/50513160.md
- es: https://zeli.app/es/story/50513160 · markdown: https://zeli.app/es/story/50513160.md
- ru: https://zeli.app/ru/story/50513160 · markdown: https://zeli.app/ru/story/50513160.md
