CVE-2026-4120 Info Cards <= 2.0.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via Block Attributes
Authenticated attackers can inject JavaScript via block attributes to execute arbitrary scripts in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-4120?
CVE-2026-4120 is a medium-severity cross-site scripting vulnerability in bplugins Info Cards – Add Text and Media in Card Layouts, published on 19 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The Info Cards – Add Text and Media in Card Layouts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'btnUrl' parameter within the Info Cards block in all versions up to, and including, 2.0.7. This is due to insufficient input validation on URL schemes, specifically the lack of javascript: protocol filtering. The block's render.php passes all attributes as JSON to the frontend via a data-attributes HTML attribute using esc_attr(wp_json_encode()), which prevents HTML attribute injection but does not validate URL protocols within the JSON data. The client-side view.js then renders the btnUrl value directly as an href attribute on anchor elements without any protocol sanitization. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject javascript: URLs that execute arbitrary web scripts when a user clicks the rendered button link.
Weakness: CWE-79
Which versions are affected by CVE-2026-4120?
How do I fix CVE-2026-4120?
No fix has been published for CVE-2026-4120 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-4120 being exploited?
There is no known exploitation of CVE-2026-4120 in the wild and no public exploit code.
Sources
Also known as GHSA-m6j6-gfjm-gh8m.