{"id":"CVE-2026-18742","kind":"vulnerability","aliases":["CVE-2026-18742"],"related":[],"title":"Flatsome WordPress theme: contributors can inject scripts into pages","description":"The Flatsome theme for WordPress is vulnerable to Stored Cross-Site Scripting via 'data-text-sec', 'data-title', and 'title' Attributes via Custom HTML Block in all versions up to, and including, 3.20.12 due to insufficient input sanitization and output escaping. 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. The payload survives server-side sanitization because wp_kses_post permits data-* attributes globally via _wp_add_global_attributes, allowing attacker-controlled values in data-text-sec, data-title, and title attributes to persist in saved post content and be later interpreted as HTML by the ux-countdown, scroll-to, and lightbox-gallery JavaScript behaviors.","summary":"The Flatsome theme for WordPress lets a contributor-level user store script code inside a Custom HTML block through certain attributes. The script runs in the browser of any visitor who opens the affected page.","severity":"medium","cvss":6.4,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"Flatsome","fixed":[],"affected":"","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["flatsome","package","self-hosted","wordpress"],"not_affected_if":["no-flatsome-theme","only-trusted-editors"],"how_to_check":"- Check the installed Flatsome version in the theme stylesheet header or Appearance > Themes; versions up to and including `3.20.12` are affected.\n- Review pages with Custom HTML blocks that contain `data-text-sec`, `data-title` or `title` attributes with script-like content.","fix":"- Flatsome: move to a version later than `3.20.12`; the sources do not name the fixed version.","status":"open","published_at":"2026-11-14T09:16:47+00:00","first_seen_at":"2026-11-14T09:27:18+00:00","triaged_at":"2026-11-14T09:28:15+00:00","updated_at":"2026-11-14T09:28:15+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-14T09:28:15Z","model":"claude-haiku-5-5","output":{"fix":"- Flatsome: move to a version later than `3.20.12`; the sources do not name the fixed version.","reach":"network","title":"Flatsome WordPress theme: contributors can inject scripts into pages","impact":"medium","summary":"The Flatsome theme for WordPress lets a contributor-level user store script code inside a Custom HTML block through certain attributes. The script runs in the browser of any visitor who opens the affected page.","audience":"businesses","category":"package","nicknames":[],"who_cares":["wordpress","flatsome","self-hosted"],"confidence":0.7,"fix_status":"unknown","needs_auth":"yes","worst_case":"Scripts run in visitors' browsers, potentially stealing sessions or data.","analyst_note":"Confirm the fixed Flatsome version and whether any vendor setting limits the Custom HTML block attributes, from the vendor's changelog or the WordPress plugin page.","how_to_check":"- Check the installed Flatsome version in the theme stylesheet header or Appearance > Themes; versions up to and including `3.20.12` are affected.\n- Review pages with Custom HTML blocks that contain `data-text-sec`, `data-title` or `title` attributes with script-like content.","plain_action":"","product_name":"Flatsome","needs_analyst":true,"not_affected_if":["no-flatsome-theme","only-trusted-editors"],"who_is_affected":"Sites running the Flatsome theme at version 3.20.12 or earlier where contributor-level or higher users can edit pages. Sites that do not use Flatsome, or where only trusted administrators write content, face much less risk. The sources do not describe a configuration that changes exposure.","user_interaction":"yes","product_ecosystem":"vendor","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000791,"input_tokens":4749,"output_tokens":632,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-18742':12A,15A '-2026':11A,14A '3.20.12':94C 'access':114C,130C 'add':151C 'affect':57B 'allow':154C 'arbitrari':119C 'attack':109C,156C 'attacker-control':155C 'attribut':44B,82C,147C,153C,169C 'authent':108C 'behavior':195C 'block':41B,86C 'browser':50B 'certain':43B 'code':36B 'content':175C 'contributor':4A,31B,112C 'contributor-level':30B,111C 'control':157C 'countdown':186C 'cross':69C 'cross-sit':68C 'custom':39B,84C 'cve':10A,13A 'data':74C,78C,146C,161C,165C 'data-text-sec':73C,160C 'data-titl':77C,164C 'due':95C 'escap':102C 'execut':126C 'flatsom':1A,17B,24B,60C 'flatsome':16A 'galleri':193C 'global':148C,152C 'host':21B 'html':40B,85C,181C 'includ':93C 'inject':6A,118C,132C 'input':98C 'insid':37B 'insuffici':97C 'interpret':179C 'javascript':194C 'kses':143C 'later':178C 'let':28B 'level':32B,113C 'lightbox':192C 'lightbox-galleri':191C 'make':104C 'open':55B 'output':101C 'packag':18B 'page':9A,58B,123C,133C 'payload':135C 'permit':145C 'persist':171C 'possibl':106C 'post':144C,174C 'run':47B 'sanit':99C,140C 'save':173C 'script':7A,35B,46B,71C,121C 'scroll':188C 'scroll-to':187C 'sec':76C,163C 'self':20B 'self-host':19B 'server':138C 'server-sid':137C 'side':139C 'site':70C 'store':34B,67C 'surviv':136C 'text':75C,162C 'theme':3A,25B,61C 'titl':79C,81C,166C,168C 'user':33B,129C 'ux':185C 'ux-countdown':184C 'valu':158C 'version':89C 'via':72C,83C,149C 'visitor':53B 'vulner':65C 'web':120C 'whenev':127C 'wordpress':2A,22B,27B,63C 'wp':142C,150C","nicknames":[],"mitigations":[],"who_affected":"Sites running the Flatsome theme at version 3.20.12 or earlier where contributor-level or higher users can edit pages. Sites that do not use Flatsome, or where only trusted administrators write content, face much less risk. The sources do not describe a configuration that changes exposure.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"pkeys":["flatsome"],"ptokens":["flatsome"],"labels":["flatsome","medium","package","selfhosted","vendor","wordpress"],"campaign_type":null,"search_a":"'-18742':12A,15A '-2026':11A,14A 'contributor':4A 'cve':10A,13A 'flatsom':1A 'flatsome':16A 'inject':6A 'page':9A 'script':7A 'theme':3A 'wordpress':2A","search_b":"'affect':57B 'attribut':44B 'block':41B 'browser':50B 'certain':43B 'code':36B 'contributor':31B 'contributor-level':30B 'custom':39B 'flatsom':17B,24B 'host':21B 'html':40B 'insid':37B 'let':28B 'level':32B 'open':55B 'packag':18B 'page':58B 'run':47B 'script':35B,46B 'self':20B 'self-host':19B 'store':34B 'theme':25B 'user':33B 'visitor':53B 'wordpress':22B,27B","search_c":"'3.20.12':94C 'access':114C,130C 'add':151C 'allow':154C 'arbitrari':119C 'attack':109C,156C 'attacker-control':155C 'attribut':82C,147C,153C,169C 'authent':108C 'behavior':195C 'block':86C 'content':175C 'contributor':112C 'contributor-level':111C 'control':157C 'countdown':186C 'cross':69C 'cross-sit':68C 'custom':84C 'data':74C,78C,146C,161C,165C 'data-text-sec':73C,160C 'data-titl':77C,164C 'due':95C 'escap':102C 'execut':126C 'flatsom':60C 'galleri':193C 'global':148C,152C 'html':85C,181C 'includ':93C 'inject':118C,132C 'input':98C 'insuffici':97C 'interpret':179C 'javascript':194C 'kses':143C 'later':178C 'level':113C 'lightbox':192C 'lightbox-galleri':191C 'make':104C 'output':101C 'page':123C,133C 'payload':135C 'permit':145C 'persist':171C 'possibl':106C 'post':144C,174C 'sanit':99C,140C 'save':173C 'script':71C,121C 'scroll':188C 'scroll-to':187C 'sec':76C,163C 'server':138C 'server-sid':137C 'side':139C 'site':70C 'store':67C 'surviv':136C 'text':75C,162C 'theme':61C 'titl':79C,81C,166C,168C 'user':129C 'ux':185C 'ux-countdown':184C 'valu':158C 'version':89C 'via':72C,83C,149C 'vulner':65C 'web':120C 'whenev':127C 'wordpress':63C 'wp':142C,150C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-14T09:16:47+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","cvss_by":"security@wordfence.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-18742","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18742","severity":null,"published_at":"2026-11-14T09:16:47+00:00","modified_at":"2026-11-14T09:16:48+00:00","first_seen_at":"2026-11-14T09:27:18+00:00","fetched_at":"2026-11-14T09:27:18+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}