What is this yellow sticky excretion from a moth? Details in photos
Some moths exude a yellow lymph excretion when they are threatened.
https://www.nature.com/articles/219747a0
The photo is not very clear, It's difficult to see the species of moth. what did the moth do after? did it fly away? If the moth was looking ill, it could be that it had a parasite.
https://www.insidescience.org/news/meet-moth-produces-both-bird-and-ant-repellants