================================================================================ legitbiz[research] // advisory ================================================================================ id: LB-2026-001 // flexslider-hg target: HG Slider (flexslider-hg) <= 2.1 type: Stored Cross-Site Scripting (CWE-79) severity: Medium (CVSS:3.1 5.4 - AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) cna / portal: Patchstack VDP (https://patchstack.com/database/mvdp) date: 2026-11-27 status: submitted / coordinated disclosure researcher: legitbiz[research] -------------------------------------------------------------------------------- [01] // summary -------------------------------------------------------------------------------- The `_slide_link_url` post-meta of the `slides` custom post type is saved using only `strip_tags()` and later echoed into the admin "Slides" list-table (the Link column) with no output escaping. An authenticated Editor can store an attribute-breakout event handler with no angle brackets that survives `strip_tags()` and executes arbitrary JavaScript in the browser of any user — including an Administrator — who opens the Slides list screen. -------------------------------------------------------------------------------- [02] // vulnerable code (flexslider-hg.php) -------------------------------------------------------------------------------- Save sink (line 346):  update_post_meta( $post_id, '_slide_link_url', strip_tags( $_POST['slide_link_url'] ) ); Render sink (line 419, hooked on manage_slides_posts_custom_column):  if ( $column == 'link' )  echo ''  . get_post_meta( $post->ID, "_slide_link_url", true ) . ''; Secondary vector: `_style` / `_corners` meta on `sliders` CPT (lines 384–385) echoed unescaped into a `class` attribute on the public front end (line 214). -------------------------------------------------------------------------------- [03] // proof of concept -------------------------------------------------------------------------------- 1. Log in as Editor. Open Slides -> Add New. 2. In the Link URL metabox, enter:  https://x" onmouseover="alert(document.cookie)" data-x=" 3. Publish slide. 4. As Administrator, open /wp-admin/edit.php?post_type=slides.  Link column renders:  ... 5. Hovering link executes payload in Administrator context. -------------------------------------------------------------------------------- [04] // remediation -------------------------------------------------------------------------------- - Output: esc_url() on href, esc_html() on link text, esc_attr() on classes. - Input: sanitize_url() / esc_url_raw() on save instead of strip_tags(). ================================================================================