Skip to main content

Code Snippets CVE-2026-106097

| EUVDEUVD-2026-95507 MEDIUM
SQL Injection (CWE-89)
2026-10-09 WPScan GHSA-6xh4-5cg9-76mq
6.8
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as subsite Administrator
  2. Delivery
    Access Code Snippets import/migration endpoint
  3. Exploit
    Inject UNION-based SQL via unsanitized parameter
  4. Execution
    Read shared network tables
  5. Impact
    Exfiltrate network-wide password hashes

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires WordPress Multisite ('network') deployment with the Code Snippets plugin (before 3.10.0) installed network-wide, AND the attacker must already hold site-administration capabilities - specifically a subsite Administrator role - but need NOT be a network Super Admin. The exploit targets the snippet-migration import endpoints, so those endpoints must be reachable by that role. LIMITING FACTORS: no anonymous/unauthenticated path (PR:H); the high-value cross-subsite data disclosure is meaningful primarily in multi-tenant Multisite networks where subsite admins are untrusted - on a single-site install the acting admin would already have legitimate database access, sharply reducing real-world impact. No end-user interaction is required (UI:N).

Impact

This is a genuine but mid-tier priority rather than an emergency. The provided CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N = 6.8 Medium) is internally consistent with the description: exploitation is network-reachable and low-complexity, but requires PR:H - site-administration capabilities - so it is NOT unauthenticated. The scope change (S:C) is well justified because a subsite Administrator, confined to their own site, can read network-wide shared tables, crossing a privilege/authorization boundary. All exploitation signals point the same direction and do not conflict: EPSS is low at 0.16% (4th percentile), SSVC reports Exploitation: none and Automatable: no with only partial technical impact, and the CVE is NOT on CISA KEV. The one escalating signal is that publicly available exploit code exists (WPScan). Taken together, POC availability raises the floor on who can attempt this, but the high-privilege prerequisite and lack of automatability keep real-world mass-exploitation probability low - this most plausibly matters in WordPress Multisite environments that delegate subsite administration to semi-trusted tenants, where it enables privilege-boundary violation (e.g. harvesting other users' password hashes). Note: the low EPSS/SSVC exploitation rating despite a public POC suggests opportunistic or targeted use against specific multisite hosters rather than widespread scanning.

Exploit ScenarioDerived

A WordPress Multisite network grants a tenant subsite Administrator rights but deliberately withholds network Super Admin. That user invokes the Code Snippets migration/import endpoint and supplies a crafted value in the vulnerable parameter to perform UNION-based SQL injection against shared network tables, reading data outside their subsite such as other users' password hashes. Public exploit code from WPScan lowers the skill barrier; the attack is network-delivered and low-complexity but requires the attacker to already hold site-administration capabilities.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 09, 2026

SQL injection in the Code Snippets WordPress plugin before version 3.10.0 allows a site Administrator - on a WordPress Multisite network that means a subsite Administrator, not a network Super Admin - to run UNION-based queries against shared network tables via the plugin's snippet-migration import endpoints, exposing network-wide data such as other users' password hashes. The flaw requires an authenticated account with site-administration capabilities (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N, base 6.8), so there is no anonymous exploitation path; publicly available exploit code exists and the WPScan advisory documents the vector, but EPSS is low (0.16%, 4th percentile) and CISA SSVC records no observed exploitation. Real-world impact is concentrated in multi-tenant Multisite networks where subsite admins are untrusted, since on a single-site install the acting administrator already has legitimate database access.

RemediationAI

Apply the vendor-released patch: upgrade the Code Snippets plugin to version 3.10.0 or later, which is the fixed release per the vendor/WPScan advisory at https://wpscan.com/vulnerability/f5206366-2e9c-42d5-90b9-ddfaf39aa02f/. Because exploitation requires an authenticated site-Administrator role, the most effective compensating control on Multisite networks is to remove the plugin's snippet-management and migration-import capabilities from subsite Administrators - for example by filtering the Administrator role's capabilities (manage_options-adjacent snippet capabilities) so only trusted network Super Admins retain them; the trade-off is that subsite admins lose the ability to manage their own snippets and migrations, and any existing automation relying on that role will break. If the plugin can be scoped to Super Admins only, install or network-activate it exclusively for the network administration context. Where upgrade or role restriction is not immediately possible, restrict the snippet-migration import endpoints at the web tier (block or geo/IP-restrict requests to those admin-ajax/admin-post routes for non-Super-Admin sessions), though this is brittle against endpoint changes, and deploy WAF signatures that flag UNION SELECT patterns in plugin import parameters as a detection-and-partial-blocking measure rather than a fix. If exploitation is suspected, treat the network's credential store as compromised: force a network-wide password reset and rotate any secrets stored in wp_users/wp_usermeta, since the injection can disclose password hashes across all subsites.

Affected VersionsENISA

Code Snippets 0 <3.10.0

Affected Packages

euvd code_snippets fix: 3.10.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-89 (SQL injection): one or more user-supplied parameters handled by the plugin's snippet-migration import routines are concatenated into a SQL statement without sanitisation or parameterisation, letting the caller inject a UNION SELECT and steer the query toward arbitrary tables. Code Snippets is a widely deployed WordPress plugin that stores and executes PHP snippets; its import/export-style migration endpoints are the affected surface, and they are reachable by any user holding site-administration capabilities (for example the manage capability set granted to Administrators). On a standard single-site WordPress install the shared database is the same one the acting admin already controls, so the information-disclosure value is limited. The meaningful case is WordPress Multisite, where each subsite has its own Administrator role but all subsites share the network-level tables (wp_users, wp_usermeta, wp_site, wp_blogs, and similar). A subsite Administrator - explicitly not required to be a network Super Admin - can therefore reach across the tenant boundary and read network-wide records, including password hashes, which is why the CVSS vector scores Scope as Changed (S:C) and Confidentiality as High while Integrity and Availability remain None. The tracking CPE is recorded as cpe:2.3:a:unknown:code_snippets:*:*:*:*:*:*:*:*, i.e. the vendor is unclassified in the feed but the affected package is confirmed as the Code Snippets plugin, matching ENISA EUVD's affected range of Code Snippets 0 to <3.10.0 (EUVD-2026-95507).

Know when Code Snippets gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (WPScan) PRIMARY 6.8 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
vuln.today AI 6.8 MEDIUM

Network-reachable low-complexity endpoint but needs site-admin capability (PR:H); scope changes (S:C) as a subsite admin reads network-wide tables; UNION SQLi discloses data only, so C:H, I:N, A:N.

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (WPScan).

CVSS VectorVendor: WPScan

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

4
CVSS changed
Oct 09, 2026 - 15:22 NVD
6.8 (MEDIUM)
Patch available
Oct 09, 2026 - 08:16 EUVD
CVE Published
Oct 09, 2026 - 06:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Oct 09, 2026 - 06:00 cve.org
MEDIUM 6.8

DescriptionCVE.org

The Code Snippets WordPress plugin before 3.10.0 does not sanitise and escape a user-supplied parameter before using it in a SQL query in some of its snippet-migration import endpoints, which are accessible to any user holding site-administration capabilities; on a WordPress Multisite network those belong to subsite Administrators, allowing a subsite Administrator who is not a network Super Admin to perform UNION-based SQL injection against shared network tables and disclose network-wide data such as other users' password hashes.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Prevalence
High
Code Snippets is a widely deployed WordPress plugin with millions of installs
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy