While there is potential danger associated with working on high-voltage components, modern electric cars have several mechanisms, regulations, and certifications as well as built-in safety features such as insulated wiring, protective covers, automatic power-off functions designed to protect users and first responders from possible electric shock.
It's worth noting that just working on an electric car or replacing some parts (especially high voltage) should only be handled by trained electric car repair professionals.