#pinchas (aka Phinehas) was not a vigilante. Guilt had been established and sentence had already been passed against Zimri and Cosbi. Pinchas also wasn't trying to punish anyone when he killed them for their flagrant disregard of God's instructions and the orders of Moses. His intent was to save Israel from destruction.

#numbers 25:11