# CVE-2026-4120: Info Cards \<= 2.0.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via Block Attributes

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-19 · Modified: 2026-04-08
- Record: https://cvemate.com/vulnerability/CVE-2026-4120 · JSON: https://cvemate.com/vulnerability/CVE-2026-4120/json

## Description

```text
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.
```

## Signals

- CVSS: 6.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- EPSS: 0.252%, percentile 17.831%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- bplugins info cards – add text and media in card layouts: ≤ 2.0.7
- wordpress info-cards: ≤ 2.0.7 (fixed in 2.0.8)

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/279984d9-f352-467f-a53d-814466d70326?source=cve>
- <https://plugins.trac.wordpress.org/browser/info-cards/trunk/build/render.php#L8>
- <https://plugins.trac.wordpress.org/browser/info-cards/tags/2.0.7/build/render.php#L8>
- <https://plugins.trac.wordpress.org/browser/info-cards/trunk/build/view.js#L2>
- <https://plugins.trac.wordpress.org/browser/info-cards/tags/2.0.7/build/view.js#L2>
- <https://plugins.trac.wordpress.org/browser/info-cards/trunk/build/block.json#L35>
- <https://plugins.trac.wordpress.org/browser/info-cards/tags/2.0.7/build/block.json#L35>
- <https://plugins.trac.wordpress.org/browser/info-cards/trunk/build/render.php?rev=3482902>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/279984d9-f352-467f-a53d-814466d70326>

---

Data as of 2026-12-05T11:03:06.838Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
