Fix critical security issue