Chemomechanical weakening in the presence of surfactants