The invention relates to a needle protector assembly (10) comprising a needle (12)of a disposable medical device and a protective cover (26) for the needle, whereinthe needle is attached to a needle hub (16) which can be moved relative to the protectivecover between a position of use in which at least the tip of the needle is outsideof the protective cover, and a retracted position iii which the needle is fullyreceived in the protective cover, wherein the needle protector assembly furthercomprises a locking mechanism (24, 48, 154, 158) adapted to secure the needlehub inside the protective cover when the needle hub is in the retracted position.