Website support, maintenance and fixes for UK businessesCall 0208 088 8371[email protected]

HomeWordPress vulnerabilitiesCode Snippets

Code Snippets vulnerabilities

Code Snippets has 7 known vulnerabilities in this database. The most recent published record is dated 9 Oct 2026.

Known vulnerabilities
7
Active installs
1m+
Latest version
3.10.2
Last updated
2 Sep 2026
Most recent
9 Oct 2026

Find it in your WordPress dashboard under Plugins. Severity is based on the CVSS score published with the CVE where one is available.

VulnerabilitySeverityAffectedFixPublished
SQL injection
CVE-2026-106097
Medium 6.8Before 3.10.0Fixed in 3.10.03 d ago
Broken access control
CVE-2026-106095
Low 3.3Before 3.10.0Fixed in 3.10.03 d ago
Cross-site request forgery (CSRF)
CVE-2026-1785
Medium 4.3Up to 3.9.4Fixed in a later version (latest 3.10.2)6 Feb 2026
Remote code execution
CVE-2025-13035
High 8.0Up to 3.9.1Fixed in a later version (latest 3.10.2)19 Nov 2025
Cross-site scripting (XSS)
CVE-2022-25617
Medium 4.7Up to 2.14.3Fixed in a later version (latest 3.10.2)18 May 2022
Cross-site scripting (XSS)
CVE-2021-25008
Medium 6.1Before 2.14.3Fixed in 2.14.324 Jan 2022
Cross-site request forgery (CSRF)
CVE-2020-8417
High 8.8Before 2.14.0Fixed in 2.14.028 Jan 2020
Read the published descriptions
CVE-2026-106097, 9 Oct 2026
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. CVE record
CVE-2026-106095, 9 Oct 2026
The Code Snippets WordPress plugin before 3.10.0 does not perform a capability check on one of its snippet-management actions and derives the network scope of the targeted snippet from the request instead of from the stored record, allowing an administrator of a single subsite on a multisite network to activate, deactivate and reprioritise network-scoped snippets that run across every site in the network. CVE record
CVE-2026-1785, 6 Feb 2026
The Code Snippets plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 3.9.4. This is due to missing nonce validation on the cloud snippet download and update actions in the Cloud_Search_List_Table class. This makes it possible for unauthenticated attackers to force logged-in administrators to download or update cloud snippets without their consent via a crafted request, granted they can trick an administrator into visiting a malicious page. CVE record
CVE-2025-13035, 19 Nov 2025
The Code Snippets plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 3.9.1. This is due to the plugin's use of extract() on attacker-controlled shortcode attributes within the `evaluate_shortcode_from_flat_file` method, which can be used to overwrite the `$filepath` variable and subsequently passed to require_once. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute arbitrary PHP code on the server via the `[code_snippet]` shortcode using PHP filter chains granted they can trick an administrator into enabling the "Enable file-based execution" setting and creating at least one active Content snippet. CVE record
CVE-2022-25617, 18 May 2022
Reflected Cross-Site Scripting (XSS) vulnerability in Code Snippets plugin <= 2.14.3 at WordPress via &orderby vulnerable parameter. CVE record
CVE-2021-25008, 24 Jan 2022
The Code Snippets WordPress plugin before 2.14.3 does not escape the snippets-safe-mode parameter before outputting it back in attributes, leading to a Reflected Cross-Site Scripting issue CVE record
CVE-2020-8417, 28 Jan 2020
The Code Snippets plugin before 2.14.0 for WordPress allows CSRF because of the lack of a Referer check on the import menu. CVE record

What to do if you run Code Snippets

If you run Code Snippets, open WordPress and check the installed version in Plugins. Compare it with the affected versions in the vulnerability record. If a fixed version is available, take a current backup and update to that version or the latest supported release.

If no fixed version exists, consider disabling and removing the plugin or replacing it with a maintained alternative. After dealing with the affected software, check administrator users, unexpected file changes, redirects, unfamiliar pages and security logs for signs that the site may already have been altered.

Email me about new Code Snippets vulnerabilities

Free. We email you when a new vulnerability is published for Code Snippets, usually within minutes. Confirm by email; unsubscribe any time.

Focus on your business. We’ll take care of your website.

From everyday updates to ongoing care, we keep your website working.

Get website support