Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-2512: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in dartiss Code Embed

0
Medium
VulnerabilityCVE-2026-2512cvecve-2026-2512cwe-79
Published: Wed Mar 18 2026 (03/18/2026, 15:28:28 UTC)
Source: CVE Database V5
Vendor/Project: dartiss
Product: Code Embed

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/09/2026, 18:42:48 UTC

Technical Analysis

CVE-2026-2512 is a stored cross-site scripting vulnerability in the Code Embed plugin for WordPress by dartiss. The plugin's sanitization function sec_check_post_fields() is only invoked during the save_post hook, but WordPress allows custom fields to be added through the wp_ajax_add_meta AJAX endpoint without triggering this hook. Consequently, the ce_filter() function outputs unsanitized meta values directly into page content without escaping, enabling authenticated users with Contributor-level permissions or higher to inject arbitrary scripts that execute on page load.

Potential Impact

An attacker with Contributor-level or higher access can inject malicious JavaScript into WordPress pages via custom fields, leading to stored XSS. This can result in the execution of arbitrary scripts in the context of users viewing the affected pages, potentially compromising user sessions or performing unauthorized actions. The impact is limited to confidentiality and integrity with no direct availability impact, as reflected in the CVSS vector.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-02-14T01:55:08.510Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69bac82e771bdb1749ab0139

Added to database: 3/18/2026, 3:43:42 PM

Last enriched: 4/9/2026, 6:42:48 PM

Last updated: 5/3/2026, 4:20:07 AM

Views: 53

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses