One thing for sure it's a hazard.
Anything foaming up in a deep fryer can also foam over.....
I have seen something like this before but in a shallow fryer... the oil had to be ditched afterwards it's no good anymore. But this was just moisture related imo. What was being fried didn't absorb the oil, instead something came out of the food (presumably moisture?) and that made it foam.