Everyone uses wireless network for their convenience for transferring packets from one node to another without having a static infrastructure. In WSN, there are some nodes which are light weighted, small in size, having low computation overhead, and low cost known as sensor nodes. Sensors are only used to sense the data packet and transfer them to other nodes or base stations. They provide the bridge between users and base stations. There are some routing protocols available but they are not sufficient to detect the malicious node. We require a better security mechanisms or techniques to secure the network. Data aggregation is an essential paradigm in WSN. The idea is to combine data coming from different source nodes. In this paper, we give the brief introduction of WSN and data aggregation. Main focus is on wormhole attack and its countermeasures. We examine the impact of wormhole attack on data aggregation.