{"id":"CVE-2026-4086","published":"2026-03-21T03:26:32Z","modified":"2026-04-08T16:34:53Z","title":"WP Random Button <= 1.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'cat' Shortcode Attribute","vendor":"newbiesup","product":"WP Random Button","tier":"tail","description":{"text":"The WP Random Button plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'cat', 'nocat', and 'text' shortcode attributes of the 'wp_random_button' shortcode in all versions up to, and including, 1.0. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes. Specifically, the random_button_html() function directly concatenates the 'cat' and 'nocat' parameters into HTML data-attributes without esc_attr(), and the 'text' parameter into HTML content without 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00224,"percentile":0.13329,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/0b9e11f5-5a05-4867-abd8-fb07c84a49b0?source=cve","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/wp-random-button/trunk/wp-random-button.php#L46","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/wp-random-button/tags/1.0/wp-random-button.php#L46","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/wp-random-button/trunk/wp-random-button.php#L50","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/wp-random-button/tags/1.0/wp-random-button.php#L50","tags":[]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":2.67},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"newbiesup","affectedVersions":[{"vendor":"newbiesup","product":"WP Random Button","versions":["<= 1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-23T18:17:33.400910Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-14010","exploited":false,"provenance":"source"}}