# How to protect from sql injection in cakephp 3

**URL:** <https://discourse.cakephp.org/t/how-to-protect-from-sql-injection-in-cakephp-3/11189>\
**Category:** Need Help\
**Tags:** help\
**Created:** [May 5, 2023, 7:23am UTC](https://discourse.cakephp.org/t/how-to-protect-from-sql-injection-in-cakephp-3/11189 "2023-05-05T07:23:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anandaraj](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Anandaraj](https://discourse.cakephp.org/u/Anandaraj)\
**Post date:** [May 5, 2023, 7:23am UTC](https://discourse.cakephp.org/t/how-to-protect-from-sql-injection-in-cakephp-3/11189/1 "2023-05-05T07:23:32Z")

</div>

How to protect against SQL injection in Cake PHP 3 We have high risks in VAP testing due to SQL injection possibilities. Please provide support to solve this issue.

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [May 5, 2023, 9:08am UTC](https://discourse.cakephp.org/t/how-to-protect-from-sql-injection-in-cakephp-3/11189/2 "2023-05-05T09:08:08Z")

</div>

See [Query Builder - 4.x](https://book.cakephp.org/4/en/orm/query-builder.html#sql-injection-prevention)
