Atomic Edge analysis of CVE-2026-137105: Simple Colorbox versions up to and including 1.6.2 suffer from an unauthenticated stored cross-site scripting vulnerability. The flaw resides in the plugin’s handling of comment content that is rendered inside Colorbox anchors. An attacker can inject arbitrary JavaScript that executes when an administrator views a page containing a malicious comment. The CVSS score is 6.1 (Medium).
Root Cause: The plugin does not properly escape the title attribute of anchor tags when generating Colorbox selectors. In simple-colorbox/index.php, the colorbox_selector string is built and then passed through apply_filters( ‘simple_colorbox_selector’, $colorbox_selector ) before being concatenated directly into an inline JavaScript string assigned to colorbox_settings[‘l10n_print_after’]. The concatenation uses single quotes around the filtered selector: $(“‘ . apply_filters(…) . ‘”).colorbox(…). Because WordPress comment kses permits the tag with a title attribute and preserves entity-encoded content, an attacker can store a payload such as . At render time, the browser decodes the attribute into the raw DOM .title property. The plugin then interpolates that decoded title value into the inline script without JavaScript encoding, breaking out of the string context and executing the payload.
Exploitation: An unauthenticated attacker submits a comment containing a crafted anchor tag with a title attribute. The comment is stored in the WordPress database. When an administrator later views the comment (for example, in the admin dashboard or on a page where comments are displayed), the plugin’s inline JavaScript is generated. The title value is decoded by the browser and inserted into the script, allowing the attacker’s JavaScript to run in the administrator’s session. The attack requires the administrator to visit a page that includes the comment, but no other action from the victim is needed.
Patch Analysis: Version 1.6.3 changes the way the colorbox selector is embedded into JavaScript. The patch moves the apply_filters call earlier and then encodes the filtered selector using wp_json_encode() with the JSON_HEX_TAG, JSON_HEX_AMP, JSON_HEX_APOS, and JSON_HEX_QUOT flags before concatenation. This ensures that any single quotes, double quotes, ampersands, or angle brackets in the filtered value are converted to their Unicode escape sequences, preventing breakouts from the JavaScript string context. The selector is now passed as a properly encoded JavaScript string literal, so malicious content cannot escape the string and execute. The patch also adds comments noting that wp_localize_script JSON-encodes the settings, making the filtered values safe for output.
Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of an administrator’s browser. This can lead to session hijacking, creation of new administrative accounts, installation of malicious plugins, or full site takeover. The vulnerability is stored and persists until the malicious comment is removed. Because the attack requires administrator interaction (viewing the comment), it is not fully unauthenticated, but it remains a serious threat due to the high privilege of the victim.







