What is mshta.exe?

Microsoft HTML Application Host · Microsoft

Runs old .hta script files. Rarely used by normal programs, often abused by malware.

Is it safe?

The real file is in C:\Windows\System32.

High CPU or memory

If it runs and you did not start anything: scan with Windows Security (full scan) and Malwarebytes.