Skip to main content
Vulnerability Database/CVE-2026-78068

CVE-2026-78068: WordPress Table Field Add-on XSS Vulnerability

CVE-2026-78068 is a stored XSS vulnerability in the Table Field Add-on for ACF and SCF WordPress plugin, allowing contributors to inject malicious scripts. This article covers the technical details, affected versions, and mitigation.

Published:

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-78068 Overview

CVE-2026-78068 is a Stored Cross-Site Scripting (XSS) vulnerability in the Table Field Add-on for Advanced Custom Fields (ACF) and Secure Custom Fields (SCF) plugin for WordPress. The flaw affects all plugin versions up to and including 1.3.35. It stems from insufficient input sanitization and output escaping of table cell content. Authenticated users with Contributor-level access or higher can inject arbitrary JavaScript into pages. The injected script executes in the browser of any user who views the affected page. The vulnerability is tracked under CWE-79.

Critical Impact

Authenticated contributors can store malicious JavaScript in table cells, enabling session theft, administrative action hijacking, and persistent client-side compromise of site visitors.

Affected Products

  • Table Field Add-on for ACF and SCF (WordPress plugin), versions up to and including 1.3.35
  • WordPress sites using the advanced-custom-fields-table-field plugin
  • Fixed in version 1.4.0

Discovery Timeline

  • 2026-10-10 - CVE-2026-78068 published to the National Vulnerability Database
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-78068

Vulnerability Analysis

The plugin provides a custom field type that lets editors build HTML tables inside the WordPress admin interface. Content entered into table cells is stored in the database and later rendered on the front end. The plugin fails to sanitize cell input on save and does not escape the stored content on output.

As a result, an authenticated user with Contributor privileges or above can place JavaScript payloads directly into a table cell. When any visitor loads a page or post that renders the table, the script executes in the visitor's browser under the site's origin. Because the Scope is Changed (S:C), the stored script can affect administrators and other authenticated users who view the content.

Typical consequences include session cookie theft, forced actions through the WordPress REST API, injection of secondary payloads, and defacement. In a chained scenario, a Contributor can escalate privileges by hijacking an administrator session the next time an admin previews or reviews the attacker-controlled content.

Root Cause

The vulnerability is a classic failure to apply both input sanitization and output escaping on user-controlled content. WordPress provides wp_kses_post(), sanitize_text_field(), and esc_html() helpers for these tasks. The plugin's table rendering path neither strips disallowed HTML on save nor escapes special characters on display, allowing <script> tags and event handler attributes to survive end-to-end.

Attack Vector

Exploitation requires an authenticated account with at least the Contributor role. The attacker edits a post or page containing the table field, inserts a JavaScript payload into one or more cells, and saves the content. The payload is persisted in the database. Execution occurs when any user, including unauthenticated visitors, loads a page rendering the field. See the Wordfence Vulnerability Report for additional detail.

// No verified public exploit code is available.
// The attack reduces to inserting a JavaScript payload
// such as a <script> tag or an element with an on* event
// handler into a table cell saved by the plugin.

Detection Methods for CVE-2026-78068

Indicators of Compromise

  • Posts, pages, or custom post types containing advanced-custom-fields-table-field metadata with <script>, onerror=, onload=, or javascript: substrings in cell values.
  • Unexpected outbound requests from visitor browsers to attacker-controlled domains following page loads.
  • New or modified administrator accounts created shortly after a Contributor-level user edited content containing the table field.

Detection Strategies

  • Query the wp_postmeta table for serialized values associated with the plugin's field keys and flag entries containing HTML or JavaScript event handlers.
  • Monitor WordPress audit logs for post edits by Contributor and Author accounts that modify table field content.
  • Inspect rendered HTML of public pages for script tags or event handler attributes originating from plugin-generated table markup.

Monitoring Recommendations

  • Enable a Content Security Policy (CSP) in report-only mode to surface inline script execution on pages that should not contain scripts.
  • Alert on privilege changes or new administrator account creation following edits by lower-privileged users.
  • Review web application firewall logs for request bodies containing script payloads targeting admin-ajax endpoints used by the plugin.

How to Mitigate CVE-2026-78068

Immediate Actions Required

  • Update the Table Field Add-on for ACF and SCF plugin to version 1.4.0 or later on all WordPress sites.
  • Audit existing posts and custom fields rendered by the plugin for stored JavaScript or suspicious HTML in table cells.
  • Review Contributor, Author, and Editor accounts for unexpected activity and rotate credentials for accounts suspected of compromise.

Patch Information

The maintainer resolved the issue in version 1.4.0. Review the fix in the WordPress Changeset Update and the Wordfence Vulnerability Report. Apply the update through the WordPress admin dashboard or by replacing the plugin directory via WP-CLI.

Workarounds

  • Temporarily restrict Contributor, Author, and Editor roles from editing posts that use the table field until the plugin is upgraded.
  • Deactivate the Table Field Add-on plugin on sites that cannot immediately apply version 1.4.0.
  • Deploy a web application firewall rule that blocks requests containing <script, onerror=, or onload= substrings in parameters targeting the plugin's save endpoints.
bash
# Update the plugin using WP-CLI
wp plugin update advanced-custom-fields-table-field --version=1.4.0

# Verify the installed version
wp plugin get advanced-custom-fields-table-field --field=version

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.