Mozilla fixed a bug in Firefox that was discovered by British spy agency GCHQ

Robert hannigan gchq directorBen Birchall – WPA Pool / Getty ImagesDirector of GCHQ Robert Hannigan.

Mozilla has fixed a security flaw in its Firefox web browser that was discovered by a team of people working for British spy agency GCHQ, The Register reports.

Mozilla says on its website that the National Technical Authority for Information Assurance (CESG) discovered a flaw in the way that Firefox handles JavaScript. CESG is part of GCHQ, the British spy agency that’s roughly equivalent to the NSA in the US.

The flaw that has been fixed in Mozilla could have allowed web pages to run their own code, potentially causing serious problems.

Spy agencies informing tech companies about flaws in their products is an important process. The NSA says that it hands over details of flaws more than 90% of the time. But that means that there are also flaws that go undisclosed, and the security agencies then use those to gather data.

NOW WATCH: A tech company made a new type of solar panel that’s about to turn the energy industry upside down

NOW WATCH: Tech Insider videos

Want to read a more in-depth view on the trends influencing Australian business and the global economy? BI / Research is designed to help executives and industry leaders understand the major challenges and opportunities for industry, technology, strategy and the economy in the future. Sign up for free at research.businessinsider.com.au.