An autoinjector, comprising: - a housing, and - a shroud lock for locking a position of a needle shroud relative to the housing of the autoinjector, wherein the shroud lock comprises: - a shroud beam (7.1) arranged on the needle shroud and biased radially outwards, - a stop (2.12) arranged within the housing, - a recess (2.13) arranged proximal of the stop (2.12), and - a cap coupled to the housing and adapted to prevent distal translation of the needle shroud relative to the housing, wherein at least a portion of the shroud beam (7.1) is within the recess (2.13) when the cap is in place, wherein the recess is provided in the housing and enables the shroud beam to be maintained in a relaxed state during storage, wherein the needle shroud is telescopically coupled to the housing and movable between an extended position relative to the housing in which a needle is covered and a retracted position relative to the housing in which the needle is exposed, wherein a shroud spring is arranged to bias the needle shroud in a distal direction against the housing, wherein the shroud lock provides a needle safety feature for the autoinjector by preventing translation of the needle shroud after the autoinjector is removed from an injection site, and wherein the shroud beam (7.1) is arranged to abut the stop (2.12) to lock the needle shroud in the extended position. - a housing, and - a shroud lock for locking a position of a needle shroud relative to the housing of the autoinjector, wherein the shroud lock comprises: - a shroud beam (7.1) arranged on the needle shroud and biased radially outwards, - a stop (2.12) arranged within the housing, - a recess (2.13) arranged proximal of the stop (2.12), and - a cap coupled to the housing and adapted to prevent distal translation of the needle shroud relative to the housing, wherein at least a portion of the shroud beam (7.1) is within the recess (2.13) when the cap is in place, wherein the recess is provided in the housing and enables the shroud beam to be maintained in a relaxed state during storage, wherein the needle shroud is telescopically coupled to the housing and movable between an extended position relative to the housing in which a needle is covered and a retracted position relative to the housing in which the needle is exposed, wherein a shroud spring is arranged to bias the needle shroud in a distal direction against the housing, wherein the shroud lock provides a needle safety feature for the autoinjector by preventing translation of the needle shroud after the autoinjector is removed from an injection site, and wherein the shroud beam (7.1) is arranged to abut the stop (2.12) to lock the needle shroud in the extended position. - a stop (2.12) arranged within the housing, - a recess (2.13) arranged proximal of the stop (2.12), and - a cap coupled to the housing and adapted to prevent distal translation of the needle shroud relative to the housing, wherein at least a portion of the shroud beam (7.1) is within the recess (2.13) when the cap is in place, wherein the recess is provided in the housing and enables the shroud beam to be maintained in a relaxed state during storage, wherein the needle shroud is telescopically coupled to the housing and movable between an extended position relative to the housing in which a needle is covered and a retracted position relative to the housing in which the needle is exposed, wherein a shroud spring is arranged to bias the needle shroud in a distal direction against the housing, wherein the shroud lock provides a needle safety feature for the autoinjector by preventing translation of the needle shroud after the autoinjector is removed from an injection site, and wherein the shroud beam (7.1) is arranged to abut the stop (2.12) to lock the needle shroud in the extended position. at least a portion of the shroud beam (7.1) is within the recess (2.13) when the cap is in place, wherein the recess is provided in the housing and enables the shroud beam to be maintained in a relaxed state during storage, wherein the needle shroud is telescopically coupled to the housing and movable between an extended position relative to the housing in which a needle is covered and a retracted position relative to the housing in which the needle is exposed, wherein a shroud spring is arranged to bias the needle shroud in a distal direction against the housing, wherein the shroud lock provides a needle safety feature for the autoinjector by preventing translation of the needle shroud after the autoinjector is removed from an injection site, and wherein the shroud beam (7.1) is arranged to abut the stop (2.12) to lock the needle shroud in the extended position.