A safety needle comprising a rigid outer structure (4) withinwhich there is a cannula holding element (2) capable of being movablycoupled to an injector pen for a drug, said cannula holding element (2)supportinga cannula (15) having a first extremity (16) and a second extremity(19) for administration of the drug, the moving protective element (55) beingassociated with the rigid structure (4, 28), said protective element coveringsaid second extremity (19) of the cannula (15) after administration, provisionbeing made for a deforming member (68) capable of deforming the cannulaafter administration of the drug in such a way that the second extremity (19)of such cannula remains within said protective element (55). The deformingmember (68) is associated with said protective element (55) and is capable ofrotating autonomously with respect thereto after administration of the drugto deform the cannula (15).