{"id":"CVE-2026-2512","published":"2026-03-18T15:28:28Z","modified":"2026-04-08T16:46:21Z","title":"Code Embed <= 2.5.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Custom Fields","vendor":"dartiss","product":"Code Embed","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00232,"percentile":0.14387,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/375ed04b-a3cb-4e60-83c8-18bff583aaf4?source=cve","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/add-embeds.php#L84","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/add-embeds.php#L20","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/simple-embed-code/trunk/includes/secure.php#L25","tags":[]},{"url":"https://plugins.trac.wordpress.org/changeset/3482994/","tags":[]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":2.88},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"dartiss","affectedVersions":[{"vendor":"dartiss","product":"Code Embed","versions":["<= 2.5.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-18T17:04:34.536044Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-12833","exploited":false,"provenance":"source"}}