The highest oxidation state exhibited by group $17$ elements is $+7$ . The elements that belong to the group $17$ are called halogens. All elements of this group have seven electrons in their outermost shell. So, these elements can lose seven electrons to get $+7$ oxidation state.