A Citi Bike rider and a fellow cyclist were beaten and robbed in separate attacks within the span of an hour in a West Side bike path by what’s believed to be the same group of thugs, police and law-enforcement sources said Tuesday.

In the first incident, a 32-year-old man on a Citi Bike was jumped while riding on the protected pathway near West 56th Street at around 10:15 p.m. Monday, police said.

A group of five to six men blocked the cyclist’s path and then knocked him off his bike before they repeatedly punched him and whacked him with a cane, according to police.

The assailants stole the victim’s Apple AirPods, debit card and the Citi Bike before they fled the scene, according to cops.

The man suffered bruising and cuts to his face, along with a bloodied nose from the terrifying incident, authorities said.

About 45 minutes later, a 59-year-old man on his own bike was riding at 12th Avenue and West 57th Street on the way to his Manhattan home when a group — likely the same young men — shoved him off his bike, cops and sources said.

The six attackers, whom the victim described as teens, pummeled him before they snatched his bag and cellphone and took off running, police sources said.

The man suffered injuries to his face and knees, but refused medical attention. His belongings were later recovered, according to police.

No arrests have been made in either case.

The muggings sparked fear among cyclists and others who frequent the popular path.

“I would be really scared,” said a 19-year-old cyclist who would identify herself only as Audrey M. “I try not to carry too much [in the way of personal items] when I’m biking.”

She noted that attacking someone who is riding a bike is even more dangerous than targeting a pedestrian, wondering, “What if they are going really fast and they’re pushed off and their head hits the pavement?”

She said the victims of the Monday-night incidents “are really lucky they didn’t get [badly] hurt.”

Another cyclist on the path called the attacks “horrible.”

“Normally, I feel really safe on a bike because I feel like I can outrun people,” the man said, adding that it’s “good to know” about the recent attacks.

Ryan Long, 30, who walks along the pathway, said he was “surprised” that the muggings occurred there, noting of the area, “It’s a work environment.”

Additional reporting by Olivia Bensimon