A leading security researcher has discovered a vulnerability in Firefox that could compromise websites and browsers.