Vehicular Ad-hoc Networks (VANETs) is a growing interest and research area over recent years for it offers enhanced safety and non-safety applications for transportation. Vehicular Ad-Hoc Networks (VANETs) is a developing technology that is yet unclear to many security issues. Security and routing concerns that are unique to VANET present great challenges. In this paper, we have proposed a scheme basically solve the black hole and gray hole attack in vehicular ad hoc networks. Black-hole and gray hole are the well-known routing attacks through which malicious nodes try to downgrade the communication performance of VANETs. In this paper, we focus on recent proposals that aim to enhance VANETs security and routing in systematic and architectural approaches. © 2018, Springer International Publishing AG.