A girl who was sexually abused by a subway straphanger at the age of 11 is finally getting justice more than a decade later — now that her abuser was nabbed on a DNA hit this week following an arrest for perving out on another female commuter, police sources said.

Back in December 2008, Javier Gonzalez, who was 31 at the time, followed the preteen onto a 6 train at 149th Street and started a conversation with her, according to the sources.

Then he led her off the train and brought her into a nearby building vestibule before allegedly kissing her and fondling her genitals, the sources said.

In Spanish, he ordered the helpless girl to get on her knees and perform oral sex on him, according to the sources. She complied, and the perv allegedly ejaculated in her mouth and on her clothing.

The case detective got hold of the young victim’s shirt and brought it in for testing, but was unable to locate a matching DNA profile, according to the sources.

Nearly 10 years later, in October 2018, Gonzalez was busted for taking an up-skirt photo of a girl on the subway, and was charged with unlawful surveillance. He pleaded guilty, and had to hand over a DNA sample as a condition of his conviction in February, the sources said.

Finally, on April 15, a DNA hit connected Gonzalez, now 42, of the Bronx, to the heinous 2008 case.

Investigators contacted the victim — and in an interview three days later, she recalled every single detail about her sexual assault, according to the sources.

When police showed her a photo array, she immediately identified Gonzalez as her attacker, the sources said.

Gonzalez, a native of Mexico, was nabbed on a warrant Monday, according to the sources and court records.

He was charged with a first-degree criminal sex act, a felony, and is being held on Rikers Island. His bail was set at $25,000 cash or $50,000 bond during an arraignment Monday.

The NYPD has struggled to tamp down on subway sex offenders, because many are charged with misdemeanors and quickly return to the streets.