Security risks of adding a chatbot to your website
Practical chatbot and AI widget risks for WordPress sites: data collection, prompt injection, poisoned behavior, third-party scripts, and what to lock down
Topics Hardening & checklists
Practical chatbot and AI widget risks for WordPress sites: data collection, prompt injection, poisoned behavior, third-party scripts, and what to lock down
Topics Hardening & checklists
Chat widgets and AI assistants can answer FAQs and route support. They also add a new place to collect personal data, run third-party JavaScript, and (for LLM bots) accept hostile instructions from visitors or page content.
You do not need to avoid chatbots entirely. You do need to treat them like any other high-privilege integration: know what they store, who hosts them, and what they are allowed to do.
A bot that asks for order IDs is useful. A bot that also asks for full card numbers, passwords, or government IDs is a liability, whether the prompt was yours or an attacker who changed the config.
Risks:
Mitigations: collect the minimum, forbid payment and password fields in bot flows, lock the vendor admin with MFA, and review transcripts for odd new prompts. Customer data habits: protecting customer data.
LLM bots read instructions from the developer and from user input. Attackers craft messages (or hide text in pages/files the bot can see) that say “ignore previous rules” or “reveal your system prompt.”
That can leak internal notes, change tone into brand damage, or push users toward phishing links. Treat untrusted input as hostile. Limit tools the bot can call (refund APIs, CRM writes). Do not give the bot raw database credentials or WordPress administrator powers.
If you fine-tune or continuously feed the model on user conversations, bad actors can try to bias answers over time. Even without training, a changed knowledge file or CMS snippet the bot indexes can alter replies.
Control which documents are in the knowledge base. Review changes. Spot-check answers for policy and safety the same way you would spot-check a junior support hire.
Most WordPress chatbots are a plugin plus a remote script. That is plugin supply chain risk and classic front-end risk:
Prefer maintained vendors, load scripts only where needed (not on checkout if avoidable), and keep WordPress and the plugin updated. Related: how to tell if a plugin is secure and the vulnerabilities hub.
Self-hosting an LLM or grabbing a random GitHub bot can be fine for experiments. For production customer chat, you inherit patching, auth, logging, and abuse control. Popular projects get attention from researchers and attackers alike. Budget time for updates or use a vendor who does.
HTTPS to the vendor is table stakes. It protects traffic in transit to that service. It does not mean the vendor cannot read transcripts, nor that a compromised WordPress admin cannot change the widget. Use HTTPS everywhere on your site (SSL basics), then focus on vendor contracts, retention settings, and admin least privilege.
Chatbots are another support channel with a bigger blast radius than a mailto link. Ship them with the same caution you use for payment plugins: least data, least privilege, and a vendor you can fire.
Found this useful? Share it.