Is it CPU temperature measured by some app? That is just normal operating temperature for processors, so don’t worry. CPU’s on phones can easily up to 50 or maybe 60 degree Celsius. I am not into the exact figures, but E.g. my laptop CPU goes to 80 degree Celsius on heavy duty.
When it is measured on the outside, I would be more worried.