I take ranitidine now and then as I have hiatus hernia, but I'm not stopping it now. I read a bit about the "scare" and the BBC news link Nan posted includes the following:
The Medicines and Healthcare products Regulatory Agency (MHRA) says the health risk of discontinuing the medicine is higher than the potential risk presented by the contaminant N-nitrosodimethylamine (NDMA).
A couple of years ago, another medication, valarstan, was found to contain traces of NDMA and risk assessment by European Medicines Agency (EMA) concluded:
The EMA has now published a preliminary assessment of the possible cancer risk associated with valsartan medicines containing NDMA. This preliminary assessment, which has been extrapolated from animal studies, estimates that there could be one extra case of cancer for every 5,000 patients taking the affected medicines at the highest valsartan dose (320 mg) every day for 7 years. The EMA notes that this estimate should be considered in the context of the lifetime risk of cancer in the EU (1 in 3) and NDMA exposure from other sources