# CVE-2026-2512: Code Embed <= 2.5.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Custom Fields

- Severity: Medium 6.4 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-03-18T15:28:28.763Z
- Modified: 2026-06-17T10:31:12.983Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## 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.

(As written by CVE List.)

## Affected

- dartiss Code Embed: up to 2.5.1

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/375ed04b-a3cb-4e60-83c8-18bff583aaf4?source=cve>
- <https://plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/add-embeds.php#L84>
- <https://plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/add-embeds.php#L20>
- <https://plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/secure.php#L25>
- <https://plugins.trac.wordpress.org/changeset/3482994/>

## Sources

- CVE List: [CVE-2026-2512](https://www.cve.org/CVERecord?id=CVE-2026-2512), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2026-2512](https://nvd.nist.gov/vuln/detail/CVE-2026-2512), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-2512 · Whole record: https://cve.day/CVE-2026-2512.json · Rebuilt by cve.day 2026-11-25T22:59:16.107Z
