CVE-2026-120406: Contact Form 7 < 6.2.5 - Unauthenticated Non-Public Post Title, URL and Author Email Disclosure via Special Mail Tags
The Contact Form 7 WordPress plugin before 6.2.5 does not check that the post a form submission says it was sent from is publicly viewable before resolving post-related mail-tags, allowing unauthenticated users to obtain the title, URL, author name and author email of private, draft and trashed posts where such tags are used in an email or message returned to the submitter.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.2.5
Event History
Frequently Asked Questions
Who is exposed to this disclosure?
Sites using Contact Form 7 versions before 6.2.5 are exposed if a form uses post-related special mail tags in an email or in a message returned to the submitter. The affected post can be private, draft, or trashed.
Does an attacker need an account or authenticated access?
No. The issue can be exploited by unauthenticated users.
What information could be disclosed?
An attacker may obtain the affected post's title, URL, author name, and author email address.
How can I determine whether a form is relevant to this issue?
Review Contact Form 7 forms and their mail or submitter-facing message configurations for post-related special mail tags. Forms without those tags are not described as disclosing post information by this issue.