CVE-2026-18438

Templately <= 3.7.1 - Authenticated (Contributor+) Arbitrary File Upload to Remote Code Execution via Gutenberg Cloud Import Attachment Filename Mismatch

The Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 3.7.1 via the fetch_remote_file function. This is due to a filename validation/destination mismatch in fetch_remote_file, where file type validation is performed against the attacker-controlled Content-Disposition filename rather than the URL-path-derived destination filename. This makes it possible for authenticated attackers, with contributor-level access and above, to execute code on the server. A GIF+PHP polyglot file passes wp_check_filetype_and_ext validation as image/gif via the Content-Disposition filename, while the actual destination path is written with a .php extension derived from the URL path, bypassing the unfiltered_upload capability gate entirely. The affected endpoints are reachable at this privilege level because Templately's entire REST API — including the cloud import endpoints used in this attack (/templately/v1/clouds/upload and /templately/v1/insert) — is authorized only by a current_user_can('delete_posts') check, with no administrator or manage_options capability requirement. The same permission gate also allows a contributor to overwrite the site's global Templately cloud connection via the /templately/v1/login endpoint with global_signin set to true. A complete remediation should both correct fetch_remote_file to validate the file type against the actual destination filename rather than the Content-Disposition header (and avoid deriving the write path from the request URL), and restrict state-changing Templately REST routes to an appropriate administrator-level capability.


We have discovered 1,676 live websites that are affected by CVE-2026-18438.

Run a Free Instant Scan




Affected Software

Product  Templately
Category Wordpress Plugins
Vulnerable Domains1,676 live websites (100% of Templately install base)
Vulnerable Versions
  • from 0 through 3.7.1
Vulnerable Versions Count18 versions ( 100% of all versions)


Common Weakness Enumeration

CWE-434 Unrestricted Upload of File with Dangerous Type



Details

  • Published - Aug 15, 2026
  • Updated - Aug 17, 2026

Credits

  • Dmitrii Ignatyev (finder)

Website Distribution by Country

Number of websites using CVE-2026-18438
United States319 websites



France127 websites
Germany105 websites
Russia77 websites
Italy65 websites
India61 websites
Brazil59 websites
Japan53 websites
Spain52 websites
Poland51 websites

Website Distribution by TLD

Number of websites using CVE-2026-18438
.com636 websites
.org73 websites
.ru66 websites
.com.br57 websites
.fr53 websites
.nl46 websites
.it45 websites
.de42 websites
.net36 websites
.pl34 websites

Vulnerable Versions

Vulnerable versions are highlighted in red

Websites affected by CVE-2026-18438

Top websites that are affected by CVE-2026-18438. Please click on the "Contact us" link to get more information.
DomainCountryRankContacts
***************.com United States***,***
***************.net United Arab Emirates***,***
*********.ru Russia***,***
****.org United States***,***
******************.com France***,***
****.com China*,***,***
*****.eu Greece*,***,***
****.com United States*,***,***
********************.com United States*,***,***
******.com Japan*,***,***
See full domain list

FAQ

CVE-2026-18438 is Unrestricted Upload of File with Dangerous Type in Templately
A total of 1,676 websites have been identified as vulnerable to CVE-2026-18438, based on global website indexing conducted by WebTechSurvey.
The Templately is affected by the CVE-2026-18438 vulnerability.
Templately versions up to and including 3.7.1 are vulnerable to CVE-2026-18438.

References