Vehicular communication systems have significant benefits. Their adoption and use in motor vehicles can help prevent road traffic accidents, increase route efficiency and fuel economy, and positively impact the user experience. As autonomous vehicles and inter-vehicular communication systems are becoming increasingly commonplace, the need for robust and secure wireless communication between vehicles is essential. The black hole attack is an attack vector that can significantly reduce the availability of Vehicular Ad Hoc Networks (VANETs) and prevent communication between vehicles entirely. We propose a solution to help secure these networks against this vulnerability by detecting the attack and removing the malicious node from the network. We validated our proposal using a simulation model in NS-3; results show that our system can detect, stop, and prevent black hole attacks in VANETs.