We prove a general factorization theorem for Lipschitz summing operators in the context of metric spaces that recovers several linear and nonlinear factorization theorems that have been proved recently in different environments. New applications are also given.