CAAERS-7013, Fix HQL injection vulnerabilities in advanced Search.