# Universal XSS in uBlock Origin from website\-driven element picker

- HackerByte page: <https://hackerbyte.net/en/stories/a-cross-site-scripting-xss-vulnerability-discovered-in-the-ublock-origin-extensi-50513160>
- Original source: <https://iter.ca/post/ubo-uxss/>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50513160>
- Submitted to Hacker News: 2026-11-16T02:04:48.000Z

A cross\-site scripting \(XSS\) vulnerability discovered in the uBlock Origin extension via a website\-driven feature.

## AI-generated summary

A critical Universal Cross\-Site Scripting \(UXSS\) vulnerability was discovered in the MV2 Firefox version of uBlock Origin, allowing malicious websites to inject arbitrary JavaScript. The issue stemmed from how the extension's element picker handled filter creation, enabling attackers to trick the browser into adding trusted filters that could execute code in any site's context. The vulnerability has since been fixed.

## Key points

- A universal XSS vulnerability was found in uBlock Origin \(MV2 Firefox\).
- Malicious websites could trick the extension into adding arbitrary trusted filters.
- Trusted filters can inject JavaScript into any webpage.
- The attack leveraged the element picker UI to add malicious filters.
- The vulnerability is now fixed.
