How to mitigate ABP filter list $rewrite arbitrary code injection?

Read about the threat: https://armin.dev/blog/2019/04/adblock-plus-code-injection/
and from ABP: https://adblockplus.org/blog/potential-vulnerability-through-the-url-rewrite-filter-option

ABP users should use uBlock Origin adblocker as it is not vulnerable,
as it does not support the $rewrite filter option.
Re: https://github.com/gorhill/uBlock/

Furthermore the the exploit can be mitigated in the affected web services by whitelisting known origins
using the connect-src CSP header, or by eliminating server-side open redirects.

I use uBlock Origin in combination with a script blocker like uMatrix.

I won’t refrain from ad- and script-blocking in the light of potentially malcious web content. :wink:

polonus (volunteer 3rd party cold reconnaissance website security analyst and website error-hunter)