Nepetalactol is thought to be the active component in Catpnip (Nepeta cataria), producing an opioid-like response in felines. Nepetalactol is a type of compound called iridoids which protect the plant against in aphids. It has been shown that this chemical can have mosquito-repellent properties1.
1. MoutinhoJan. 20, S., 2021 & Pm, 2:00. Why cats are crazy for catnip. Science AAAS (2021).