
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-0831 is an Arbitrary File Write vulnerability in the Templately plugin for WordPress, affecting all versions up to and including 3.4.8. The flaw resides in the save_template_to_file() function, where user-controlled parameters (session_id, content_id, ai_page_ids) are used to construct file paths without proper sanitization, enabling unauthenticated attackers to write arbitrary .ai.json files to the uploads directory. It was published on January 10, 2026, and assigned by Wordfence. The CVSS v3.1 base score is 5.3 (Medium), assigned by Wordfence (Wordfence).
The root cause is classified as CWE-863 (Incorrect Authorization), stemming from inadequate input validation in the save_template_to_file() function within includes/Core/Importer/Utils/AIUtils.php (line 414) and the API handler in includes/API/AIContent.php (line 38). User-supplied parameters — session_id, content_id, and ai_page_ids — are incorporated directly into file path construction without sanitization, allowing path traversal-style manipulation to place .ai.json files in arbitrary locations within the uploads directory. No authentication is required to trigger this endpoint, making the attack vector fully unauthenticated over the network with low complexity (Wordfence, WordPress Trac).
Successful exploitation allows unauthenticated attackers to write arbitrary .ai.json files to locations within the WordPress uploads directory, resulting in a low integrity impact with no direct confidentiality or availability impact per the CVSS scoring. While the file type is restricted to .ai.json, malicious content written to the uploads directory could be leveraged for stored payload delivery, template injection, or as a stepping stone for further attacks if the JSON content is later processed by the application. The scope is limited to the affected WordPress installation's uploads directory (Wordfence).
No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported as of the available data. The EPSS score is approximately 0.026% (0.000260), indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been identified (Wordfence).
/wp-content/plugins/templately/ for version indicators.save_template_to_file() in includes/API/AIContent.php — this endpoint accepts unauthenticated requests.session_id, content_id, ai_page_ids) crafted to control the resulting file path within the uploads directory..ai.json file to a chosen location within the WordPress uploads directory.session_id, content_id, or ai_page_ids parameter values..ai.json files appearing in the WordPress uploads directory (/wp-content/uploads/) with unusual names or in unexpected subdirectories; file creation timestamps inconsistent with normal plugin activity.Users should update the Templately plugin to version 3.4.9 or later, which addresses the insufficient input validation in the save_template_to_file() function. The fix is available via the WordPress plugin repository changeset 3426051. As an interim measure, site administrators can disable the Templately plugin until the update is applied, or restrict access to the WordPress uploads directory to prevent serving of unexpected .ai.json files (WordPress Trac, Wordfence).
Sucuri included CVE-2026-0831 in their January 2026 vulnerability patch roundup, highlighting it as a notable WordPress plugin issue requiring prompt patching (Sucuri Blog). Infinit Security published a dedicated technical post detailing the vulnerability mechanics (Infinit Security). Community discussion was limited, with the vulnerability receiving standard aggregation coverage across CVE tracking platforms.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."