There are many things which can cause a LI battery to leak.
Defect in manufacturing
Physical abuse
discharged too low
overcharged
shorted
and the ever popular many more
The goo that leaks out is corrosive and toxic. Clean it up and throw out the battery.
Check you
mod to be sure it is not shorting the battery and do not let it discharge too far. Check the voltage of a battery after you charge it and it should nob be above 4.3 volts, if it is get a new charger. Check that
batteries do not get warm when charging, if they do some chargers have a way to charge slower and if not get a new charger. Be careful when chargeing
batteries cause if things go wrong bad things can happen, I do not charge while asleep or out of the house.