Atomic Edge analysis of CVE-2026-122221 (metadata-based): CVE-2026-122221 is an authenticated (Contributor+) stored cross-site scripting (XSS) vulnerability in the WPBakery Page Builder plugin (slug js_composer) affecting all versions up to and including 9.1. The vulnerable sink is the ‘section_title_tag’ shortcode attribute on the accordion element render path. The CVSS 3.1 base score is 6.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N), reflecting a low-privilege authenticated attacker who can store a payload that executes in the context of higher-privileged users viewing the affected page. Atomic Edge rates this as high-priority for multi-author WordPress sites, where a contributor account can be chained to admin compromise via session theft.
Root cause (inferred from CWE-79 and description, not confirmed against source since no diff is downloadable): the plugin ships a helper, resolveSectionTitleTag(), that enforces an [h1-h6, p] allow-list. The accordion render path does not call this helper. The ‘section_title_tag’ shortcode attribute value is therefore interpolated into the HTML tag name of the section title without an allow-list check or attribute-context escaping. The primary sanitization applied by WordPress core to post_content on save, wp_kses_post(), does not parse or rewrite shortcode attribute text. The attacker-supplied attribute value is stored verbatim in post meta or post_content and later echoed into the rendered page. Atomic Edge classifies this as a broken control flow (helper exists but unused) plus a missing output-encoding context, consistent with CWE-79.
Exploitation (inferred): a Contributor-level user creates or edits a page containing the WPBakery accordion shortcode with a malicious ‘section_title_tag’ value. Because the value is placed in the tag-name position of the generated HTML, the attacker must break out of the tag-name grammar. Payload families: (1) attribute breakout using // tricks such as section_title_tag=”h2 onmouseover=alert(document.domain) x=” producing a mutated tag; (2) tag-name level injection using a payload that closes the opening tag early, for example h2>img src=x onerror=alert(1) <; and (3) namespace or slash prefix tricks that the upstream shortcode parser may accept. The confirmed requirement from the description is that the value is stored verbatim and reaches the render sink. The exact payload grammar (which characters survive the shortcode parser and wp_kses_post) is inferred from the CWE and the described render behavior; Atomic Edge cannot verify the byte-level survival without the plugin source. Minimal environment: contributor account, one page, WPBakery editor or direct shortcode insertion, standard HTTP POST to /wp-admin/post.php (or the REST endpoint /wp-json/wp/v2/pages) with the 'content' parameter containing the accordion shortcode block.
Remediation (inferred): the patched version 9.2 must call resolveSectionTitleTag() (or equivalent allow-list normalization) on the 'section_title_tag' attribute in the accordion render path before interpolating it into HTML. The fix must (a) map any incoming value to the default tag when it is not in [h1..h6, p], and (b) sign or escape the value so that it is not stored verbatim by the shortcode parser. Atomic Edge notes that wp_kses_post() is not a substitute for context-aware escaping, and that any general fix in WPBakery must apply the allow-list at render time, not only at save time, because stored shortcodes may bypass the save-level sanitizer when the post is inserted via REST, XML-RPC, or a metabox patch.
Impact: a Contributor can store a script that executes in the session of any higher-privileged user who views the injected page. Successful exploitation enables session-cookie theft, admin account takeover via profile updates, plugin/theme modification for full site compromise, exfiltration of other authors' draft content, and pivot to REST API calls using the victim's nonce and cookies. The S:C scope change in the CVSS vector reflects the fact that the payload runs in the origin of the WordPress site, not the contributor's own editor session. Atomic Edge considers the practical severity higher than the 6.4 base score in multi-author newsrooms and SaaS blog networks.







