According to the invention, a safety device for a pre-filled syringe comprises a hollow support body for mounting the pre-filled syringe therein, a hollow needle shield that is slidable relative to the support body and guiding means for guiding the movement of the needle shield relative to the support body. The guiding means comprise a flexible arm with a guide pin, a guide track and a separating wall. The guide pin extends from the flexible arm in a radial direction, and protrudes into the guide track. The separating wall extends into the guide track in a direction parallel to a central axis of the safety device. When the needle shield is slid relative to the support body the guide pin moves along the guide track to deflect the flexible arm in a lateral direction perpendicular to the central axis and the movement of the guide pin along the guide track is guided by the interplay of the flexible arm and the separating wall.