A needle safety assembly (10) comprising a needle (12) and a protective cover (26) for the needle (12),wherein the needle (12) is attached to a needle hub (16) which has wings (20) provided on opposite sides of the needle hub (16) and which can be moved relative to the protective cover (26) from a position of use in which at least the tip (14) of the needle (12) is outside of the protective cover (26) into a retracted position in which the needle (12) is fully received in the protective cover (26),wherein the protective cover (26) is of generally tubular shape and defines two opposite axial slots (28) which extend from a distal end of the protective cover (26) towards a tubular base portion (32) of the protective cover (26), wherein the slots (28) are adapted to receive the wings (20) when the needle hub (16) moves into the protective cover (26), and wherein the needle safety assembly (16) further comprises a locking mechanism adapted to secure the needle hub (16) inside the protective cover (26) when the needle hub (16) is in the retracted position.