The new linkify code opens us to XSS. My bad.
Open this to verify: https://github.com/bfred-it/sandbox/blob/master/test.js
The issue was passing a textContent to the linkifier (which could be the string "<img src='yo.jpg'>") and getting back HTML. Bang. XSS.
Fixed in https://github.com/sindresorhus/refined-github/commit/21fd5f059aaa015fe8a5f1554039125265b628f3 already because of the urgency.
Leaving this open for a bit as an advisory.
I don't think your changes with XSS was released though, right?
Correct. I just wanted to fix the master branch as fast as possible, even though it introduced a small bug: #511
@bfred-it For such urgent fixes, a better way is to create a PR and merge it immediately. This way you still have run CI, you have generated notifications and a PR is easier for review even when merged.
@hkdobrev thanks! Hopefully I won't find such urgent bugs anymore.
Most helpful comment
@bfred-it For such urgent fixes, a better way is to create a PR and merge it immediately. This way you still have run CI, you have generated notifications and a PR is easier for review even when merged.