Two people were slashed in the head, and a third was slugged in the head with a knife, in an unprovoked attack in the Bronx Thursday morning, police said.

The assault happened around 11:40 a.m. near E. 170th St. and Teller Ave., in Morrisania.

Two men, ages 63 and 25, were taken by medics to Lincoln Hospital, each for cuts on their head.

The third victim, a 35-year-old man, complained of head pain after the attacker hit him with the knife, but did not require medical attention

The attacker was taken into custody but has not yet been charged.

Cops said it wasn’t clear if the victims know each other or if the attacker said anything to them.