CVE-2026-2512 Details
Description
The Code Embed plugin for WordPress is vulnerable to Stored Cross-Site Scripting via custom field meta values in all versions up to, and including, 2.5.1. This is due to the plugin's sanitization function `sec_check_post_fields()` only running on the `save_post` hook, while WordPress allows custom fields to be added via the `wp_ajax_add_meta` AJAX endpoint without triggering `save_post`. The `ce_filter()` function then outputs these unsanitized meta values directly into page content without escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
A stored cross-site scripting vulnerability has been identified in the Code Embed plugin for WordPress, affecting all versions through 2.5.1. The issue arises because the plugin's sanitization function, 'sec_check_post_fields()', only activates on the 'save_post' hook. This creates a gap, as WordPress allows custom fields to be added through the 'wp_ajax_add_meta' AJAX endpoint without triggering 'save_post'. Consequently, the 'ce_filter()' function directly outputs these unsanitized custom field values into page content without proper escaping. This vulnerability enables authenticated attackers with Contributor-level access or higher to inject arbitrary scripts into pages, where the scripts will execute when a user views the affected page.
Users are advised to update the Code Embed plugin to version 2.5.2 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 18, 2026CISA-ADP
Assessed Mar 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Artiss Code Embed | <= 2.5.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | New CVE Received | [email protected] |
Volerion