Ssf security & injections

Hello guys. I have a case where i must use server side functions and pass user input into it. How to do it in secure way? I can’t find anything about this in forum. Dont advice not to use ssf please, because in my case i cant avoid ssf. Please advice hot to use it secure and avoid injections.