CVE-2026-4120

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.
Configurations

No configuration.

History

22 Apr 2026, 21:32

Type Values Removed Values Added
Summary
  • (es) El plugin Info Cards – Add Text and Media in Card Layouts para WordPress es vulnerable a Cross-Site Scripting Almacenado a través del parámetro 'btnUrl' dentro del bloque Info Cards en todas las versiones hasta, e incluyendo, la 2.0.7. Esto se debe a una validación de entrada insuficiente en los esquemas de URL, específicamente la falta de filtrado del protocolo javascript:. El render.php del bloque pasa todos los atributos como JSON al frontend a través de un atributo HTML data-attributes usando esc_attr(wp_json_encode()), lo que previene la inyección de atributos HTML pero no valida los protocolos de URL dentro de los datos JSON. El view.js del lado del cliente luego renderiza el valor de btnUrl directamente como un atributo href en elementos de anclaje sin ninguna sanitización de protocolo. Esto hace posible que atacantes autenticados, con acceso de nivel Colaborador y superior, inyecten URLs javascript: que ejecutan scripts web arbitrarios cuando un usuario hace clic en el enlace del botón renderizado.

19 Mar 2026, 07:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-19 07:16

Updated : 2026-04-22 21:32


NVD link : CVE-2026-4120

Mitre link : CVE-2026-4120

CVE.ORG link : CVE-2026-4120


JSON object : View

Products Affected

No product.

CWE
CWE-79

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