CVE-2026-2512: Code Embed (WordPress plugin) · Cross-site Scripting
Affects Code Embed (WordPress plugin)Source CVE Database V5
Not known to be exploited · CVSS 6.4 Medium.
Data as of 31 Oct 2026, 20:20 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 10% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 18 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 31 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| dartissCode Embed | Affected
| Fixed in– |
AI-suggested
Until an official fix is available, restrict Contributor-level access to trusted users only and consider disabling or limiting the use of the Code Embed plugin. Monitor for updates from the vendor and apply patches promptly once released.
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.
References
- wordfence.com/threat-intel/vulnerabilities/id/375ed04b-a3cb-4e60-83c8-18bff583aaf4?source=cve (opens in a new tab)
- plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/add-embeds.php (opens in a new tab)
- plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/add-embeds.php (opens in a new tab)
- plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/secure.php (opens in a new tab)
- plugins.trac.wordpress.org/changeset/3482994/ (opens in a new tab)