Sorry for the loss of your cat. I was talking to my daughter and found out that if a cat licks at the flea med that is applied they will foam also. I had just put flea med and she was scratching and maybe got some on her paw and this could be the problem.