The woman, along with a friend, was travelling in the Jamalpur Express and the accused allegedly molested her when the train was at Pakur railway station in Jharkhand, the GRP said.
The woman immediately raised an alarm, following which other passengers and the Railway Protection Force (RPF) personnel, who were on board, caught hold of the accused.
The accused was produced before a court here, which remanded him to a four-day judicial custody.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.