Clinical reactivations of herpes simplex virus or varicella zoster virus occur frequently among patients with malignancies and manifest particularly as herpes simplex stomatitis in patients with acute leukaemia treated with intensive chemotherapy and as herpes zoster in patients with lymphoma or multiple myeloma. In recent years, knowledge on reactivation rates and clinical manifestations has increased for conventional chemotherapeutics as well as for many new antineoplastic agents. This guideline summarizes current evidence on herpesvirus reactivation in patients with solid tumours and hematological malignancies not undergoing allogeneic or autologous hematopoietic stem cell transplantation or other cellular therapy including diagnostic, prophylactic, and therapeutic aspects. Particularly, strategies of risk adapted pharmacological prophylaxis and vaccination are outlined for different patient groups. This guideline updates the guidelines of the Infectious Diseases Working Party (AGIHO) of the German Society for Hematology and Medical Oncology (DGHO) from 2015 “Antiviral prophylaxis in patients with solid tumours and haematological malignancies” focusing on herpes simplex virus and varicella zoster virus.