It happened on the Linn Road in the town at about 14:05 BST on Sunday.
The two men have been taken to hospital for treatment for their injuries.
Police have appealed for anyone with information about the attack to contact them.
Two men have been assaulted in Larne, County Antrim, by a gang armed with baseball bats and a hatchet.