Junction Box

These metal junction boxes are used to protect electrical wire connections also called splices.

The absence of a cover plate represents a fire and shock hazard.

One of the two loose wires amplifies this risk because it is energized.  All it takes is someone to touch that wire to get an electrical shock or worse.