GHSA-5XC8-CV7X-VQ3G
Vulnerability from github – Published: 2026-04-08 09:31 – Updated: 2026-04-08 09:31The Columns by BestWebSoft plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'id' shortcode attribute of the [print_clmns] shortcode in all versions up to and including 1.0.3. This is due to insufficient input sanitization and output escaping on the 'id' attribute. The shortcode receives the 'id' parameter via shortcode_atts() at line 596 and directly embeds it into HTML output at line 731 (in a div id attribute) and into inline CSS at lines 672-729 without any escaping or sanitization. While the SQL query uses %d to cast the value to an integer for database lookup, the original unsanitized string value of $id is still used in the HTML/CSS output. 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. The attack requires that at least one column exists in the plugin (created by an admin), as the SQL query must return results for the output branch to be reached.
{
"affected": [],
"aliases": [
"CVE-2026-3618"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-04-08T07:16:21Z",
"severity": "MODERATE"
},
"details": "The Columns by BestWebSoft plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the \u0027id\u0027 shortcode attribute of the [print_clmns] shortcode in all versions up to and including 1.0.3. This is due to insufficient input sanitization and output escaping on the \u0027id\u0027 attribute. The shortcode receives the \u0027id\u0027 parameter via shortcode_atts() at line 596 and directly embeds it into HTML output at line 731 (in a div id attribute) and into inline CSS at lines 672-729 without any escaping or sanitization. While the SQL query uses %d to cast the value to an integer for database lookup, the original unsanitized string value of $id is still used in the HTML/CSS output. 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. The attack requires that at least one column exists in the plugin (created by an admin), as the SQL query must return results for the output branch to be reached.",
"id": "GHSA-5xc8-cv7x-vq3g",
"modified": "2026-04-08T09:31:30Z",
"published": "2026-04-08T09:31:30Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-3618"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/columns-bws/tags/1.0.3/columns-bws.php#L596"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/columns-bws/tags/1.0.3/columns-bws.php#L672"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/columns-bws/tags/1.0.3/columns-bws.php#L729"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/columns-bws/tags/1.0.3/columns-bws.php#L731"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/columns-bws/trunk/columns-bws.php#L596"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/columns-bws/trunk/columns-bws.php#L672"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/columns-bws/trunk/columns-bws.php#L729"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/columns-bws/trunk/columns-bws.php#L731"
},
{
"type": "WEB",
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/d3e293db-9177-4fbb-a469-900d9330642d?source=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
]
}
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.