Honeywell thermostat oozing yellow and programing not working
That appears to be dielectric grease. It keeps the pins from corroding. I wouldn't have expected to see it on an interior thermostat, but it's not a concern. (It was probably there when you installed the thermostat.)

You can wipe some of it up, but try to leave a thin film on each pin.