CVE-2026-7796
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-7796 is a Stored Cross-Site Scripting (XSS) vulnerability in the EmbedPress WordPress plugin — which provides PDF embedding, YouTube video embedding, 3D FlipBook, and social feed features — affecting all versions up to and including 4.5.3. The flaw arises from insufficient input sanitization and output escaping of the block url attribute, allowing authenticated attackers with contributor-level access or above to inject arbitrary web scripts into pages. It was published on June 6, 2026, with a CVSS v3.1 base score of 6.4 (Medium) (GitHub Advisory, Wordfence).

Technical details

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting). The root cause lies in the EmbedPress Gutenberg block renderer (EmbedPressBlockRenderer.php) and helper class (Helper.php), which fail to properly sanitize or escape the url attribute before rendering it in page output. An attacker with at minimum contributor-level WordPress access can craft a malicious block containing a JavaScript payload in the url field; this payload is stored server-side and executes in the browsers of any user who subsequently views the affected page. Relevant vulnerable code paths are documented at lines 133 and 1181 of EmbedPressBlockRenderer.php and line 1659 of Helper.php (GitHub Advisory, Wordfence).

Impact

Successful exploitation allows an authenticated attacker to persistently inject malicious JavaScript into WordPress pages, which executes in the browsers of all users — including administrators — who visit the compromised page. This can lead to session cookie theft, credential harvesting, unauthorized administrative actions (such as privilege escalation or backdoor installation), and defacement of site content. While availability is not directly impacted, the confidentiality and integrity of user sessions and site data are at risk (GitHub Advisory, Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the EmbedPress plugin at version 4.5.3 or earlier using tools like WPScan or by inspecting page source for EmbedPress block signatures.
  2. Obtain contributor access: Register or compromise a WordPress account with at least contributor-level privileges on the target site.
  3. Create or edit a post: Navigate to the WordPress block editor and insert an EmbedPress block into a new or existing post or page.
  4. Inject malicious payload: Set the block's url attribute to a crafted value containing a JavaScript payload (e.g., javascript:/*--></title></style></textarea></script><script>alert(document.cookie)</script>) that bypasses the insufficient sanitization.
  5. Publish the page: Submit or update the post so the malicious script is stored in the database and rendered in the page output.
  6. Trigger execution: When any user (including administrators) visits the injected page, the stored script executes in their browser, enabling session hijacking, credential theft, or further exploitation (GitHub Advisory, Wordfence).

Indicators of compromise

  • Logs: WordPress audit logs or server access logs showing contributor-level (or above) users creating or editing posts/pages containing EmbedPress blocks with unusual or encoded url attribute values (e.g., values containing <script>, javascript:, or HTML-encoded equivalents).
  • Database: WordPress wp_posts or wp_postmeta tables containing EmbedPress block markup with suspicious url attribute values including JavaScript payloads or unexpected external URLs.
  • Network: Outbound requests from victim browsers to attacker-controlled domains (e.g., for cookie exfiltration) originating from pages hosting EmbedPress blocks; unusual POST requests to attacker infrastructure from site visitor IPs.
  • File System: No direct file system artifacts expected for this stored XSS, but monitor for unexpected changes to theme files or plugin files that could indicate follow-on compromise after session hijacking.

Mitigation and workarounds

Site administrators should update the EmbedPress plugin to a version beyond 4.5.3 as soon as a patched release becomes available; the patch changeset is referenced in the WordPress plugin repository (GitHub Advisory). As an interim measure, restrict contributor-level and above access to only fully trusted users, and consider disabling the EmbedPress plugin if it is not actively required. Deploying a Web Application Firewall (WAF) with rules targeting script injection in block URL attributes can provide additional detection and blocking capability (Wordfence).

Community reactions

Wordfence, which assigned and disclosed this CVE, included it in their weekly WordPress vulnerability report for June 1–7, 2026, as part of routine plugin vulnerability tracking (Wordfence Weekly Report). No significant independent researcher commentary, social media discussion, or broader media coverage has been identified for this vulnerability beyond standard aggregator and advisory database entries.

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-13147CRITICAL9.1
  • kirki
NoYesJul 20, 2026
CVE-2026-9833HIGH7.1
  • tag-groups
NoYesJul 20, 2026
CVE-2026-13432MEDIUM5.4
  • image-sizes
NoYesJul 20, 2026
CVE-2026-13156MEDIUM5.4
  • mailersend-official-smtp-integration
NoYesJul 20, 2026
CVE-2026-8825MEDIUM4.9
  • elementor
NoYesJul 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management