The issue arises from the plugin's failure to properly sanitise and escape user input before using it in SQL statements, leading to SQL injections. This can be exploited by anyone permitted to view the forms statistics chart, which by default includes administrators, although permissions can be configured otherwise via the plugin settings.