The 8-year-old girl had boarded the train along with her father, who is an Army jawan. About 1 AM near the Ballia station when all passengers were asleep, the vendor, Ranjeet (22) took her near the toilet and eve-teased her, they said.
Meanwhile, a passenger reached the spot and Ranjeet escaped, police said.
In the morning, the girl identified Ranjeet when he entered the coach following which he was nabbed by the passengers, who informed the railway control room.
Circle Officer, GRP Indu Prabha Singh said that the complaint had been received and the process of registration is on.