Two bystanders were hit by stray bullets during a wild shootout in Brooklyn, police said.

The violence erupted just before 6 p.m. Monday at the intersection of East 21st Street and Ditmas Avenue in Flatbush, cops said.

The two unidentified women were walking together near the crosswalk when they noticed a group of men arguing — and one of the men began indiscriminately shooting, according to police.

One of the bullets hit the 26-year-old woman in the right leg, while another bullet hit the 50-year-old woman in her right arm, police said.

Both women were taken to Kings County Hospital, where they are in stable condition, cops said.

Police are still searching for the shooter, who they believe to be a 17- to 21-year-old black male.