Is WordPress vulnerable to SQL injections?
WordPress is prone to a possible SQL injection vulnerability because it fails to properly sanitize user-supplied input before using it in an SQL query. Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
The main reason of failure is bad written code (blugins & themes)
There are a few security plugins that protect
for me best is WordFence