The influence of hydrogen on the mechanical behavior of the CoCrFeMnNi high-entropy alloy (HEA) was examined through tensile and nanoindentation experiments on specimens hydrogenated via gaseous and electrochemical methods. Results show that the HEA's resistance to gaseous hydrogen embrittlement is better than that of two representative austenitic stainless steels, in spite of the fact that it absorbs a larger amount of hydrogen than the two steels. Reasons for this were discussed in terms of hydrogen-enhanced localized plasticity mechanism and the critical amount of hydrogen required for it. These were further substantiated by additional experiments on electrochemically charged specimens.