CVE-2026-42728
Stored XSS in HT Contact Form 7 Plugin
Publication date: 2026-05-27
Last updated on: 2026-05-27
Assigner: Patchstack
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| ht_plugins | ht_contact_form_7 | to 2.8.2 (inc) |
| ht_plugins | ht_contact_form_7 | From 2.8.0 (inc) to 2.8.2 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2026-42728 is a Cross Site Scripting (XSS) vulnerability found in the WordPress HT Contact Form 7 Plugin, versions 2.8.2 and below.
This vulnerability occurs due to improper neutralization of input during web page generation, allowing attackers to inject malicious scripts into the website.
Exploitation requires user interaction, such as clicking a malicious link or submitting a form.
Successful attacks can lead to injected scripts that perform actions like redirects or displaying unwanted advertisements.
How can this vulnerability impact me? :
This vulnerability can allow attackers to execute malicious scripts on your website, potentially leading to unauthorized actions such as redirecting users to malicious sites or displaying unwanted advertisements.
Because the vulnerability is unauthenticated and has a CVSS score of 7.1, it poses a moderate risk and could be exploited in widespread attacks targeting many websites.
Exploitation requires user interaction, so users clicking malicious links or submitting crafted forms could trigger the attack.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
The vulnerability is a Stored Cross Site Scripting (XSS) issue in the HT Contact Form 7 plugin versions 2.8.2 and below. Detection typically involves checking the plugin version and monitoring for suspicious input or script injections in form submissions.
To detect if your system is vulnerable, first verify the plugin version installed on your WordPress site. You can do this by running commands to list installed plugins and their versions, for example:
- wp plugin list | grep ht-contactform
Additionally, monitoring HTTP requests and responses for suspicious script tags or unusual payloads in form submissions can help detect exploitation attempts. Using web application firewalls or security plugins that log or block XSS attempts is also recommended.
What immediate steps should I take to mitigate this vulnerability?
The immediate recommended step is to update the HT Contact Form 7 plugin to version 2.8.3 or later, where the vulnerability is patched.
Until the update can be applied, users should employ mitigation tools such as Patchstack to block attacks targeting this vulnerability.
Additionally, restricting user input, implementing web application firewalls, and monitoring for suspicious activity can help reduce the risk of exploitation.