Is it safe to leave live wires in a fan assembly?
No, this is not safe. Those wires should be disconnect where they originate, at the overhead lights. If a new fan is to be installed, the proper electrical box should be installed as these wires seem to come right through the drywall ceiling. With the power off, fold each wire over and tape with electrical tape until you can disconnect them from the light fixture.