CMB2 <= 2.13.4 - Unauthenticated Stored Cross-Site Scripting via Grouped WYSIWYG Field via Front-End Form
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Reports 1
1 outlet mention it. Reports are not confirmation; each links to its source.
Description
The CMB2 plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'cmb43ex1_grp[0][txt] (wysiwyg field inside group โ field id controlled by integrator config)' parameter in all versions up to, and including, 2.13.4 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This is only exploitable when a site integrator renders the plugin's documented front-end form helper with a wysiwyg field inside a repeatable group on a publicly accessible page.
Text from CVE List
Affected versions 1
- CMB2affected: all versions through 2.13.4CVE List
References 7
- github.com/CMB2/CMB2/commit/fbeb7c4688dc5b8635a34978d837f1d458dcac44Fixvia CVE List
- wordfence.com/threat-intel/vulnerabilities/id/97215367-08c0-46cc-a595-4475274a5a1c?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/cmb2/tags/2.13.4/includes/CMB2_Field.php#L715Referencevia CVE List
- plugins.trac.wordpress.org/browser/cmb2/tags/2.13.4/includes/types/CMB2_Type_Wysiwyg.php#L93Referencevia CVE List
- plugins.trac.wordpress.org/browser/cmb2/tags/2.13.4/includes/helper-functions.php#L320Referencevia CVE List
- plugins.trac.wordpress.org/browser/cmb2/tags/2.13.4/includes/CMB2_Sanitize.php#L447Referencevia CVE List
- plugins.trac.wordpress.org/changeset/3767609/cmb2/trunk/includes/CMB2_Field.phpReferencevia CVE List