CVE-2026-131645: Kognetiks Chatbot <= 2.5.9 - Unauthenticated Stored DOM-Based Cross-Site Scripting via 'comment' Parameter via MathJax Rendering
The Kognetiks Chatbot plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 2.5.9 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The TeX payload survives WordPress core comment kses intact because it contains no HTML tags, and MathJax is active on fresh installs by default due to the 'chatbotchatgptenablemathjax' option defaulting to 'Yes' with no page or shortcode presence guard on enqueue.
Affected Software
Event History
Frequently Asked Questions
Are fresh installations affected by default?
Yes. MathJax is enabled by default through the chatbot_chatgpt_enable_mathjax option, which defaults to "Yes," and it is enqueued without checking for page or shortcode presence.
Does exploitation require an authenticated WordPress account or user interaction?
No attacker authentication is required. An attacker can submit a crafted comment parameter containing a TeX payload; the injected script executes when a user later accesses the affected page.
Why does normal WordPress comment filtering not prevent this payload?
The TeX payload contains no HTML tags, so it can survive WordPress core comment kses filtering intact before MathJax renders it.
What can be done if updating is not immediately possible?
Disable MathJax by setting the chatbot_chatgpt_enable_mathjax option to something other than "Yes." Review pages for injected comments or TeX payloads, since previously stored payloads may execute when affected pages are visited.