Solanum viarum, a perennial shrub, belongs to the family Solanaceae known for its therapeutic value worldwide. As a beneficial remedial plant, it is used for treating several disorders like dysentery, diabetes, inflammation, and respiratory disorders. Phytochemistry studies of this plant have shown the presence of steroidal glycoside alkaloids, including solasonine, solasodine, and solamargine. It also has flavonoids, saponins, minerals, and other substances. S. viarum extracts and compounds possess a variety of pharmacological effects, including antipyretic, antioxidant, antibacterial, insecticidal, analgesic, and anticancer activity. Most of the heavy metals accumulate in the aerial sections of the plant which is considered a potential phytoremediation, a highly effective method for the treatment of metal-polluted soils. We emphasize the forgoing outline of S. viarum, as well as its ethnomedicinal and ethnopharmacological applications, the chemistry of its secondary metabolites, and heavy metal toxicity. In addition to describing the antitumor activity of compounds and their mechanisms of action isolated from S. viarum, liabilities are also explained and illustrated, including any significant chemical or metabolic stability and toxicity risks. A comprehensive list of information was compiled from Science Direct, PubMed, Google Scholar, and Web of Science using different key phrases (traditional use, ethnomedicinal plants, western Himalaya, Himachal Pradesh, S viarum, and biological activity). According to the findings of this study, we hope that this review will inspire further studies along the drug discovery pathway of the chemicals extracted from the plant of S. viarum. Further, this review shows that ethnopharmacological information from ethnomedicinal plants can be a promising approach to drug discovery for cancer and diabetes.