Internet of things (IoT) is one of the new technologies that is expanding exponentially and is presenting new opportunities in a variety of industries, including business, academics, healthcare, transportation, industry, environment, and making our home and cities smart, among others. The IoT system's smart gadgets will be able to perceive, gather, and transport data via the internet without the need for human interaction. Large businesses strive to include technology into their marketing or digital marketing plan that reshapes consumers' expectations, attitudes, and requirements toward businesses in addition to communication style and product promotion. Due to the utilization of several smart devices, networks, and software that are weak and susceptible to hacking, it has a number of security vulnerabilities. The study focuses on the impression of IoT in digital marketing, IoT surface attack and security flaws, technological and security issues in digital marketing, and tries to present some preventive solutions for using IoT's in digital marketing.