Sheets2Table <= 0.4.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'titles' Shortcode Attribute
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 6.4epss 0.2%
exploitation probability
0.2%top 91% of all CVEs
observed exploitation
nono source reports it
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:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Affected products
tonyh-1 · Sheets2TableReferences
https://plugins.trac.wordpress.org/browser/sheets2table/tags/0.4.1/core/class-sheets2table-tables.php#L122https://plugins.trac.wordpress.org/browser/sheets2table/tags/0.4.1/core/sheets2table-shortcodes.php#L32https://plugins.trac.wordpress.org/browser/sheets2table/trunk/core/class-sheets2table-tables.php#L122https://plugins.trac.wordpress.org/browser/sheets2table/trunk/core/sheets2table-shortcodes.php#L32https://www.wordfence.com/threat-intel/vulnerabilities/id/82061b1f-a717-4007-978c-a3875669556f?source=cve