Early morning commuters in Perth's southern suburbs have avoided disaster after two cars crashed, pushing one onto an active train track.

The passenger of the vehicle pushed onto the track jumped out before her car was then struck by a freight train in Bibra Lake, on North Lake Road around 6.45am.

The train has been derailed.

Police said no one was injured, but traffic in the area was heavy as emergency services attempted to clear the crash and make the area safe.