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

CVE-2026-97348: SiteOrigin Widgets Bundle Path Traversal

CVE-2026-97348 is a path traversal vulnerability in SiteOrigin Widgets Bundle plugin for WordPress that allows authenticated attackers to read arbitrary files on the server. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

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

CVE-2026-97348 is a directory traversal vulnerability in the SiteOrigin Widgets Bundle plugin for WordPress, affecting all versions up to and including 1.74.3. The flaw resides in the get_instance_css function and allows authenticated attackers with contributor-level access or higher to read arbitrary files on the server. The [siteorigin_widget] shortcode handler calls $the_widget->widget() directly on attacker-supplied decoded JSON, bypassing the standard update() and sanitize_field_input() validation pipeline that would normally reject non-hex color values. This bypass is what makes the traversal reachable through what would otherwise be a sanitized input path.

Critical Impact

Authenticated contributors can read sensitive files on the WordPress server, including configuration files that may contain database credentials and secret keys.

Affected Products

  • SiteOrigin Widgets Bundle plugin for WordPress — all versions up to and including 1.74.3
  • WordPress sites allowing contributor-level or higher registration
  • Sites using the [siteorigin_widget] shortcode handler

Discovery Timeline

  • 2026-10-10 - CVE-2026-97348 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-97348

Vulnerability Analysis

The vulnerability is a path traversal flaw [CWE-22] that lets an authenticated attacker coerce the plugin into reading files outside its intended directory. The get_instance_css function processes a color-style field whose value is normally constrained to a hex color by sanitize_field_input(). When invoked through the normal widget update flow, non-hex input is rejected before it reaches file-handling logic.

However, the [siteorigin_widget] shortcode handler takes a different path. It decodes a JSON widget instance supplied by the user and passes it directly into $the_widget->widget(), bypassing update() and the associated sanitization. An attacker-supplied value traverses the filesystem through ../ sequences, and the plugin reads and returns the referenced file contents into generated CSS output.

Exploitation requires only contributor privileges, a role commonly granted on multi-author WordPress sites. Confidentiality impact is high; integrity and availability are not affected.

Root Cause

The root cause is inconsistent input validation across code paths. Fields are sanitized when processed through the widget update pipeline but not when reached through the shortcode handler at base/inc/shortcode.php. The result is a trust boundary violation: a value treated as untrusted in one path is treated as trusted in another.

Attack Vector

An authenticated contributor crafts a post or page containing a [siteorigin_widget] shortcode with a JSON instance parameter. The JSON contains a field expected to hold a hex color but instead carries a traversal payload resolving to a sensitive file such as wp-config.php. When the shortcode is rendered, get_instance_css dereferences the attacker-controlled path and discloses file contents.

Technical references for the vulnerable code paths are available in the WordPress Shortcode L31 Source, WordPress Widget Class L1006 Source, and the Wordfence Vulnerability Analysis.

Detection Methods for CVE-2026-97348

Indicators of Compromise

  • Posts or pages containing [siteorigin_widget] shortcodes authored by contributor-level accounts
  • Shortcode instance JSON payloads containing ../ sequences or absolute filesystem paths
  • Generated widget CSS output containing fragments of server-side files such as wp-config.php
  • Unexpected contributor account creation followed by rapid post creation using the vulnerable plugin

Detection Strategies

  • Audit all posts and pages for [siteorigin_widget] shortcode usage and inspect embedded JSON instance values for traversal patterns.
  • Monitor web server access logs for requests to posts rendering siteorigin_widget shortcodes with abnormal response sizes or CSS content containing PHP tokens.
  • Review WordPress user activity logs for contributor-created or edited content targeting the plugin's shortcode.

Monitoring Recommendations

  • Enable file integrity monitoring on the WordPress root, especially on wp-config.php and files in wp-content/plugins/so-widgets-bundle/.
  • Alert on HTTP responses from WordPress endpoints that return CSS payloads containing suspicious tokens such as DB_PASSWORD, AUTH_KEY, or <?php.
  • Track creation and privilege changes for low-privilege accounts and correlate with plugin usage.

How to Mitigate CVE-2026-97348

Immediate Actions Required

  • Update the SiteOrigin Widgets Bundle plugin to the version containing the fix referenced in WordPress ChangeSet #3724795.
  • Review and remove any suspicious contributor-level accounts that cannot be attributed to legitimate users.
  • Rotate WordPress secret keys and database credentials if file disclosure is suspected.
  • Audit existing posts for [siteorigin_widget] shortcode content with path-like values.

Patch Information

The vendor fix is published in WordPress ChangeSet #3724795 and the corresponding GitHub Comparison Commit. The patch adds validation to the shortcode-rendering path so that attacker-supplied instance data is sanitized before being passed to the widget rendering function. Apply any plugin release later than 1.74.3.

Workarounds

  • Temporarily restrict contributor-level and above account creation on affected WordPress sites until the plugin is updated.
  • Disable the SiteOrigin Widgets Bundle plugin on sites that cannot be patched immediately.
  • Use a web application firewall rule to block requests whose body or query string contains [siteorigin_widget] with ../ sequences in the instance JSON.
  • Restrict filesystem read permissions on wp-config.php and other sensitive files to the minimum required by the PHP process.
bash
# Example WP-CLI commands to update the plugin and audit contributor accounts
wp plugin update so-widgets-bundle
wp user list --role=contributor --fields=ID,user_login,user_registered
wp post list --post_type=any --format=csv | grep -i 'siteorigin_widget'

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.