---
id: CVE-2025-13146
title: >-
  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.7
summary: >-
  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.7. This is due to the software allowing users to execute an
  action that does no…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-94
vendor: sevenspark
product: DTX – Dynamic Text Extension for Contact Form 7
affected:
  - dtx_dynamic_text_extension_for_contact_form_7 <= 5.0.7
published: '2026-07-22'
updated: '2026-09-14'
sourceUpdated: '2026-09-14T23:17:14.463'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-13146'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/contact-form-7-dynamic-text-extension/trunk/contact-form-7-dynamic-text-extension.php#L765
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/contact-form-7-dynamic-text-extension/trunk/contact-form-7-dynamic-text-extension.php#L782
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/contact-form-7-dynamic-text-extension/trunk/includes/utilities.php#L265
    label: security@wordfence.com
  - url: 'https://plugins.trac.wordpress.org/changeset/3430784/'
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/3e5ad3a7-03c5-4085-b330-bc77e7e46cea?source=cve
    label: security@wordfence.com
tags:
  - nvd
  - cve.org
epss: 0.00471
epssPercentile: 0.38166
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-07-22T12:19:31.896874Z'
ingestedAt: '2026-09-14T23:17:06.515Z'
---

## Overview

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.7. 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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
