CVE-2026-1336
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-1336 is a Missing Authorization vulnerability in the "AI ChatBot with ChatGPT and Content Generator by AYS" plugin for WordPress. Due to missing capability checks on the store_data() and get_chatgpt_api_key() functions, unauthenticated attackers can view, modify, or delete the plugin's ChatGPT API key. All versions up to and including 2.7.5 are affected; the vulnerability was partially fixed in 2.7.5 and fully remediated in 2.7.6. It carries a CVSS v3.1 base score of 5.3 (Medium) (Wordfence, ENISA EUVD).

Technical details

The root cause is CWE-862 (Missing Authorization): the store_data() and get_chatgpt_api_key() functions in the plugin's admin and database action classes do not perform any capability or nonce checks before executing sensitive operations. An unauthenticated remote attacker can send crafted HTTP requests directly to these WordPress AJAX or REST endpoints to read, overwrite, or delete the stored ChatGPT API key. Vulnerable code paths are visible in the plugin's source at class-chatgpt-assistant-db-actions.php (line 23) and class-chatgpt-assistant-admin.php (line 4060) (Wordfence, WordPress Trac).

Impact

Successful exploitation allows an unauthenticated attacker to retrieve the site owner's ChatGPT API key (enabling unauthorized API usage and potential billing fraud), replace it with an attacker-controlled key (hijacking AI responses served to site visitors), or delete it entirely (disrupting chatbot functionality). While direct server compromise is not achievable through this vulnerability alone, API key theft could facilitate further abuse of the OpenAI account associated with the key, and key replacement could enable content manipulation or phishing via the chatbot interface (Wordfence, ENISA EUVD).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported for CVE-2026-1336 as of the available data. The EPSS score is approximately 0.045% (very low probability of exploitation in the near term). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the low attack complexity and lack of authentication requirements make it trivially exploitable by any network-accessible attacker if a vulnerable plugin version is installed (Wordfence, ENISA EUVD).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the "AI ChatBot with ChatGPT and Content Generator by AYS" plugin (version ≤ 2.7.5) using tools like WPScan, Shodan, or by checking publicly accessible readme.txt files at /wp-content/plugins/ays-chatgpt-assistant/readme.txt.
  2. Identify vulnerable endpoints: Locate the WordPress AJAX action or REST route registered by store_data() and get_chatgpt_api_key() — typically invoked via wp-admin/admin-ajax.php with specific action parameters, or a REST API endpoint, without authentication checks.
  3. Retrieve the API key: Send an unauthenticated HTTP POST request to the relevant endpoint (e.g., POST /wp-admin/admin-ajax.php with the appropriate action parameter for get_chatgpt_api_key) to extract the stored ChatGPT API key from the database.
  4. Modify or delete the API key: Send a crafted POST request to the store_data() endpoint with a malicious or empty API key value to overwrite or remove the legitimate key, disrupting service or substituting attacker-controlled credentials.
  5. Abuse the stolen API key: Use the retrieved OpenAI API key to make unauthorized API calls, incurring costs on the victim's account or accessing usage data (Wordfence, WordPress Trac).

Indicators of compromise

  • Network: Unexpected unauthenticated POST requests to wp-admin/admin-ajax.php with action parameters associated with the AYS ChatGPT plugin (e.g., actions related to store_data or API key retrieval) from unknown or automated IP addresses.
  • Logs: WordPress access logs showing repeated requests to admin-ajax.php without a valid session cookie or nonce, particularly targeting plugin-specific action parameters.
  • Application: Sudden change or deletion of the ChatGPT API key in the plugin's settings (visible in the WordPress admin panel under the AYS ChatBot configuration); chatbot functionality failing or returning unexpected responses due to a replaced API key.
  • OpenAI Account: Unexpected spikes in OpenAI API usage or billing alerts on the account associated with the plugin's API key, potentially indicating unauthorized use of a stolen key.

Mitigation and workarounds

Site administrators should update the "AI ChatBot with ChatGPT and Content Generator by AYS" plugin to version 2.7.6 or later, which fully resolves the missing authorization issue. Version 2.7.5 provides only a partial fix and should not be considered sufficient. After updating, administrators should rotate the ChatGPT API key in the plugin settings and in their OpenAI account to invalidate any key that may have been exposed. As an interim measure, restricting access to wp-admin/admin-ajax.php via firewall rules or a Web Application Firewall (WAF) for unauthenticated requests can reduce exposure (Wordfence, ENISA EUVD).

Community reactions

The vulnerability was disclosed by Wordfence, which published a threat intelligence entry detailing the affected functions and fix versions. Automated CVE tracking accounts on Bluesky and Twitter/X noted the publication shortly after NVD indexing. No significant independent researcher commentary or major media coverage has been identified beyond standard vulnerability aggregator postings (Wordfence).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-19859MEDIUM6.5
  • jetformbuilder
NoYesSep 06, 2026
CVE-2026-85038MEDIUM5.3
  • b2bking-wholesale-for-woocommerce
NoYesSep 06, 2026
CVE-2026-80439MEDIUM4.8
  • wpcf7-redirect
NoYesSep 06, 2026
CVE-2026-80437MEDIUM4.8
  • ninja-forms
NoYesSep 06, 2026
CVE-2026-19862MEDIUM4.8
  • jetformbuilder
NoYesSep 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management