WordPress security changelog
MEDIUM CVE-2025-13146 Deferred

Dynamic Text Extension permits unauthenticated shortcode execution

Contact Form 7 - Dynamic Text Extension through 5.0.6 can pass an attacker-controlled value to do_shortcode without sufficient validation. An unauthenticated attacker can invoke shortcodes exposed by the site; the resulting impact depends on which plugins and shortcodes are installed. Version 5.0.4 only partially addressed the weakness.

CVE / CNA score 6.5 CVSS 3.1 · security@wordfence.com
NVD score Pending NVD has not published its own CVSS assessment.
Component
Contact Form 7 – Dynamic Text Extension
Plugin slug
contact-form-7-dynamic-text-extension
Affected
<= 5.0.3
Safe version
See mitigation notes
Published
Jul 22, 2026
Weakness
CWE-94 — Improper Control of Generation of Code ('Code Injection')

This CVE was published Jul 22, 2026 and is one of 4 known issues for this plugin.

Update, patch or deactivate.

No fixed public release is currently available: WordPress.org still lists 5.0.6 as the latest version, and the CNA record identifies 5.0.6 as affected. Disable Dynamic Text Extension until a release newer than 5.0.6 is confirmed to fix CVE-2025-13146, and review installed shortcodes for operations that expose or modify sensitive data.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

The The Contact Form 7 – Dynamic Text Extension plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 5.0.6. This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes. The vulnerability was partially patched in version 5.0.4.

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Primary and upstream sources