Security is a factor of the configuration and the management of the CMS. Forums that are open source are extremely safe from hacking if the developers can stick to some principles like updating their forum source codes to the most recent ones, embracing proper authentication methods, and setting proper controls to access the forum.