The application relates to a needle safety device (28) for a medical device, the needle safety device comprising: a base portion (30) having a bore extending in an axial direction therethrough for receiving a needle (24); two opposing jaws (34,36) extending from the base portion (30) generally in the axial direction and each having a head portion (38,40) in the region of its free end, wherein at least one of the head portions (38,40) forms a locking shoulder (50) for securing the needle safety device (28) in a housing of the medical device; and an elastic element (44) surrounding the jaws (34,36) in a region between the base portion (30) and the head portions (38,40), wherein the elastic element (44) and the jaws (34,36) are configured such that the jaws (34,36) can be spread apart against a restoring force of the elastic element (44) in order to allow the needle (24) received in the bore to extend all the way through the needle safety device (28). The application also relates to a needle (24) for a medical device and to an intravenous catheter apparatus comprising a needle (24) and a needle safety device (28).