The motion of viruses and bacteria and even synthetic microswimmers can be affected by thermal fluctuations and by external flows. In this work, we study the effect of linear external flows and thermal fluctuations on the diffusion of those swimmers modeled as spherical active (self-propelled) particles moving in two dimensions. General formulae for their mean-square displacement under a general linear flow are presented. We also provide, at short and long times, explicit expressions for the mean-square displacement of a swimmer immersed in three canonical flows, namely, solid-body rotation, shear and extensional flows. These expressions can now be used to estimate the effect of external flows on the displacement of Brownian microswimmers. Finally, our theoretical results are validated by using Brownian dynamics simulations.