SQL injection (SQLi) is a cyber attack that manipulates SQL code to access unauthorized data from databases, leading to significant risks such as data breaches and loss of customer trust. There are several types of SQLi, including in-band, inferential, and out-of-band, each using different methods to exploit vulnerabilities. To mitigate SQL injection attacks, organizations should sanitize user inputs, use prepared statements, and enforce strict access controls on database connections.