Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-96768 Overview
CVE-2026-96768 is a Stored Cross-Site Scripting (XSS) vulnerability in the GoSMTP Pro plugin for WordPress, affecting all versions up to and including 1.2.3. The flaw stems from insufficient input sanitization and output escaping in the comment-to-email-log pipeline. Unauthenticated attackers can inject arbitrary web scripts that execute when any user visits an affected page. The payload bypasses WordPress comment kses filtering because the sanitizer does not strip entity-encoded tag delimiters, then gets decoded into live HTML by core email notification functions and written verbatim into the plugin's email log database table [CWE-79].
Critical Impact
Unauthenticated attackers can inject persistent JavaScript via blog comments that executes in the context of administrators viewing the plugin's email log, enabling session theft, account takeover, and administrative action hijacking.
Affected Products
- GoSMTP Pro plugin for WordPress
- All versions up to and including 1.2.3
- WordPress sites using GoSMTP Pro for SMTP email delivery and logging
Discovery Timeline
- 2026-10-16 - CVE-2026-96768 published to the National Vulnerability Database
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-96768
Vulnerability Analysis
The vulnerability is a stored XSS flaw that chains together three distinct behaviors in the WordPress comment and email notification pipeline. An unauthenticated attacker submits a comment containing HTML tag delimiters encoded as HTML entities, such as <script>. The WordPress kses sanitizer treats the encoded string as safe text and allows the comment to pass moderation.
When WordPress generates the administrative email notification for the new comment, core notification routines decode the entity-encoded delimiters back into literal < and > characters. The GoSMTP Pro plugin captures this decoded email body and writes it verbatim into its email log database table without re-escaping. Any administrator who opens the plugin's email log page in wp-admin renders the attacker-controlled HTML in their authenticated browser session.
Root Cause
The root cause is a sanitization-decoding mismatch. The kses filter inspects comment content as text and does not treat entity-encoded tag delimiters as HTML. Downstream email notification code reverses that encoding before the GoSMTP Pro plugin persists the content. The plugin assumes stored log data is already safe and emits it to the admin screen without output escaping.
Attack Vector
The attack is remote, requires no authentication, and needs no user interaction beyond an administrator opening the email log view. An attacker submits a comment on any public post with a payload such as entity-encoded <script> tags containing JavaScript. Once the comment triggers an email notification, the decoded payload is stored in the GoSMTP Pro log table. The script executes when a privileged user views the log, running under the administrator's origin and session.
No verified public exploit code is available. See the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2026-96768
Indicators of Compromise
- Comments containing entity-encoded HTML tag delimiters such as <script>, <script>, or <script> in the wp_comments table.
- Rows in the GoSMTP Pro email log database table containing raw <script>, <iframe>, or onerror= attributes within the stored email body.
- Unexpected outbound requests from administrator browsers to attacker-controlled domains immediately after opening the plugin's email log page.
- New administrator accounts, modified user roles, or unauthorized plugin installations following administrator sessions on affected sites.
Detection Strategies
- Query the GoSMTP Pro email log table for stored HTML tag patterns and JavaScript event handlers in email body columns.
- Inspect the wp_comments table for entity-encoded tag sequences that would decode to executable HTML.
- Monitor wp-admin sessions for anomalous DOM activity or script-initiated requests when the GoSMTP Pro log view is accessed.
- Review web server logs for POST requests to wp-comments-post.php that contain encoded delimiter sequences in the comment body parameter.
Monitoring Recommendations
- Enable a web application firewall rule set that flags entity-encoded script tags in comment submissions.
- Alert on administrator browser sessions issuing unexpected cross-origin requests shortly after loading plugin admin pages.
- Audit WordPress user and role changes on a daily basis for sites running GoSMTP Pro versions 1.2.3 or earlier.
How to Mitigate CVE-2026-96768
Immediate Actions Required
- Update the GoSMTP Pro plugin to version 1.2.4 or later on all affected WordPress installations.
- Review existing entries in the GoSMTP Pro email log table and purge any rows containing suspicious HTML or JavaScript content.
- Audit WordPress administrator accounts, API keys, and installed plugins for unauthorized changes made since the plugin was first deployed.
- Rotate administrator credentials and invalidate active sessions if log inspection reveals indicators of exploitation.
Patch Information
The vendor released GoSMTP Pro version 1.2.4 to remediate this issue. Details are published in the GoSMTP 1.2.4 release blog post. Site administrators should apply the update through the WordPress plugin manager or by uploading the fixed package.
Workarounds
- Disable the GoSMTP Pro plugin until the patched version 1.2.4 can be installed.
- Temporarily restrict public comment submission or require authentication for commenting on sites that cannot update immediately.
- Deploy a web application firewall rule that rejects comment bodies containing entity-encoded tag delimiters.
- Restrict access to the GoSMTP Pro email log admin page to a minimal set of trusted administrators using role-based access controls.
# Update GoSMTP Pro using WP-CLI
wp plugin update gosmtp --version=1.2.4
# Verify installed version
wp plugin get gosmtp --field=version
# Temporarily deactivate until patched
wp plugin deactivate gosmtp
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

