My car unlocks itself

To pinpoint the problem we need to be clear about your information. Do all the doors unlock or just one? If they all unlock then it’s probably the main switch that controls all the doors. I’ve seen broken switches cause this problem. A slight bump or change in atmospheric pressure or temperature can trigger the relays. If that’s not the problem then the remote door lock/unlock system may be at fault. The key fob controller or the vehicle controller may be at fault. You could try to reset the controller code and it may fix the problem. If this vehicle is still under warranty then the dealership is probably your best bet to reset the code.