Depending on the circumstances, various parties could be responsible, including the rideshare driver, another driver involved in the accident, or even the rideshare company itself. Determining liability requires a thorough investigation of the accident.