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-106095 Overview
CVE-2026-106095 affects the Code Snippets WordPress plugin before version 3.10.0. The plugin fails to perform a capability check on one of its snippet-management actions. It also derives the network scope of the targeted snippet from the request rather than from the stored record. An administrator of a single subsite on a WordPress multisite network can activate, deactivate, and reprioritise network-scoped snippets. These snippets execute across every site in the network, enabling a subsite administrator to influence code running on sites they do not own.
Critical Impact
A subsite administrator can manipulate network-scoped snippet execution across every site in a WordPress multisite installation.
Affected Products
- Code Snippets WordPress plugin versions prior to 3.10.0
- WordPress multisite installations using the plugin
- Network-scoped snippets managed by the plugin
Discovery Timeline
- 2026-10-09 - CVE-2026-106095 published to NVD
- 2026-10-09 - Last updated in NVD database
Technical Details for CVE-2026-106095
Vulnerability Analysis
The vulnerability is a missing authorization flaw [CWE-862] in a snippet-management action exposed by the Code Snippets plugin. The handler does not verify that the caller holds the capability required to manage network-scoped snippets. The handler also trusts a scope value supplied by the request to decide whether the targeted snippet is site-scoped or network-scoped. Because the stored record is not consulted, a subsite administrator can submit a request that references a network-scoped snippet and have the action applied to it.
The impact is limited to integrity and availability of snippet state, specifically activation, deactivation, and priority ordering. The attacker must already hold administrator privileges on at least one subsite. Successful manipulation causes attacker-selected PHP snippets to execute, or stop executing, across every site in the multisite network.
Root Cause
Two defects compound into the vulnerability. First, the action handler omits a current_user_can() check for the capability that governs network-scoped snippet management. Second, the handler uses the network scope indicator from the HTTP request parameters instead of loading the snippet record and reading its stored scope. Trusting client-supplied scope allows a subsite administrator to cross the trust boundary between a single site and the network.
Attack Vector
An authenticated administrator on any subsite submits a crafted request to the vulnerable snippet-management endpoint. The request references the identifier of a network-scoped snippet and sets the scope parameter accordingly. The handler performs the activate, deactivate, or reprioritise action without validating the caller's network-level capability. See the WPScan Vulnerability Report for additional technical details.
Detection Methods for CVE-2026-106095
Indicators of Compromise
- Unexpected activation or deactivation of network-scoped snippets recorded in the plugin's snippet table.
- Changes to snippet priority values that do not correlate with super administrator activity.
- POST requests to Code Snippets management endpoints originating from subsite administrator sessions.
Detection Strategies
- Compare the current state of network-scoped snippets against a known-good baseline on a scheduled interval.
- Audit WordPress user roles and identify subsite administrators who accessed network-scoped snippet endpoints.
- Review web server access logs for requests to Code Snippets admin-ajax or REST routes with a network scope parameter sourced from non-super-admin sessions.
Monitoring Recommendations
- Enable database auditing on the snippet storage table to capture update, insert, and delete events.
- Forward WordPress application logs and web server access logs to a centralized SIEM for correlation across multisite nodes.
- Alert on any snippet state change performed by a user who is not a super administrator.
How to Mitigate CVE-2026-106095
Immediate Actions Required
- Upgrade the Code Snippets plugin to version 3.10.0 or later on all WordPress multisite installations.
- Review the current list of network-scoped snippets and remove or disable any that are unexpected.
- Audit subsite administrator accounts and revoke privileges that are no longer required.
Patch Information
The vendor fixed the issue in Code Snippets version 3.10.0. The patch enforces a capability check for network-scoped snippet management and derives the scope from the stored snippet record rather than the request. Refer to the WPScan Vulnerability Report for the advisory.
Workarounds
- Restrict subsite administrator assignments to trusted operators until the plugin is updated.
- Temporarily deactivate the Code Snippets plugin on multisite networks where immediate patching is not possible.
- Place the WordPress admin interface behind an IP allowlist or VPN to reduce exposure of the vulnerable endpoint.
# Update Code Snippets to the patched version using WP-CLI
wp plugin update code-snippets --version=3.10.0 --network
wp plugin status code-snippets
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

