Insufficient input sanitization and output escaping allow unauthenticated attackers to perform Stored DOM-Based Cross-Site Scripting. This occurs via the `comment` parameter, enabling the injection of arbitrary web scripts that execute when a user visits the affected page. The issue is facilitated by the fact that TeX payloads bypass WordPress core comment filters as they contain no HTML tags. Additionally, MathJax—a JavaScript library for rendering mathematical notation—is active by default on new installations because the `chatbot chatgpt enable mathjax` option is set to 'Yes' without a guard to check for the presence of the page or shortcode during enqueue.