CVE-2026-48093

Code Embed - Contributor Stored Cross-Site Scripting via Remote URL Embed

Published Aug 7, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
The Code Embed WordPress plugin prior to version 2.6.1 is vulnerable to stored Cross-Site Scripting (XSS) through the external URL embed feature in post content. The vulnerable code scans rendered content for URL embed tokens, fetches the remote URL, and inserts the remote response body into the page without output sanitization or an `unfiltered_html` capability check. This allows a Contributor attacker to submit a pending post containing an inert-looking URL token that executes attacker-controlled JavaScript when an Administrator or Editor previews or reviews the post. This is distinct from CVE-2026-2512, which affected custom field meta values up to version 2.5.1. This vector affects version 2.6 and uses the documented external URL embed feature in post content. This particular issue is patched in version 2.6.1.

Analysis

AI-generated

Technical impact

The Code Embed plugin for WordPress contains a stored XSS flaw that allows a user with Contributor permissions to embed a malicious URL token in a pending post. The plugin retrieves the content of the specified external URL and inserts it into the final page without sanitising the response or checking the authorisation token for unfiltered HTML. When an Administrator or Editor previews or reviews the post, the malicious JavaScript is executed in the context of the CMS account, giving the attacker the ability to compromise user sessions, deface content, or perform other malicious actions. The weakness is a classic input‑validation error and is catalogued as CWE‑79.

Affected Systems

WordPress sites that have installed the dartiss:code‑embed plugin and are running any version prior to 2.6.1, including the major 2.5.x and 2.6.0 releases. The vulnerability specifically targets the remote URL embed feature used in post content. The fix is available in version 2.6.1 and later.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. No EPSS score is available, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector requires that the adversary be able to submit a pending post and that an administrator or editor subsequently review it – meaning the threat comes from trusted contributors rather than external actors. Once the malicious content is rendered, the impact is local to the victim’s browser but can lead to credential theft or lateral movement. Because the flaw is stored, repeated exploitation is possible, making patching an urgent priority.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Code Embed plugin to version 2.6.1 or later.
  • Restrict Contributor role privileges or disable the external URL embed feature if it is not needed for your workflow.
  • Review pending posts for suspicious embed tokens and consider applying custom sanitisation filters as a temporary countermeasure.

Generated by OpenCVE AI on August 7, 2026 at 17:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Davidartiss
Davidartiss code Embed
Wordpress
Wordpress wordpress
Vendors & Products Davidartiss
Davidartiss code Embed
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Description The Code Embed WordPress plugin prior to version 2.6.1 is vulnerable to stored Cross-Site Scripting (XSS) through the external URL embed feature in post content. The vulnerable code scans rendered content for URL embed tokens, fetches the remote URL, and inserts the remote response body into the page without output sanitization or an `unfiltered_html` capability check. This allows a Contributor attacker to submit a pending post containing an inert-looking URL token that executes attacker-controlled JavaScript when an Administrator or Editor previews or reviews the post. This is distinct from CVE-2026-2512, which affected custom field meta values up to version 2.5.1. This vector affects version 2.6 and uses the documented external URL embed feature in post content. This particular issue is patched in version 2.6.1.
Title Code Embed - Contributor Stored Cross-Site Scripting via Remote URL Embed
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 10, 2026, 11:58 AM
Reserved
May 20, 2026, 6:40 PM
Status
Deferred
Published
Aug 7, 2026, 4:17 PM
Modified
Sep 9, 2026, 9:02 PM