Canine distemper is a highly contagious, often fatal disease caused by canine distemper virus (CDV) in domestic dogs and wild carnivores. The virus has caused mass epidemics in both wild and captive carnivores of high conservation value such as tigers, lions and leopards. Hence, understanding and managing CDV outbreaks is particularly important in Nepal, which is home to many species of threatened wild carnivores including tigers, leopards, snow leopards, dholes and wolves, and also contains a large population of stray dogs. Previous studies have suggested that CDV may pose a threat to wild carnivores, but there have not been any studies characterizing the genetic strains of the virus circulating in Nepal’s carnivores. We collected invasive and non-invasive biological samples from stray dogs in Kathmandu Valley and genetically characterized the strains of CDV in the dogs to belong to the Asia-5 lineage by using phylogenetic analysis. The same lineage also contained CDV strains sequenced from dogs, civets, red panda and lions in India. Based on our phylogenetic analysis, we think it is likely that CDV is maintained through sylvatic cycle among sympatric carnivores allowing the recurring spillovers and outbreaks. It is crucial to prevent the virus transmission from reservoir hosts to other species, especially threatened populations of large carnivores in Nepal. Hence, we recommend for regular surveillance of CDV targeting wild carnivores in addition to the domestic dogs.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12985-023-02071-6.