{"id":"CVE-2026-116522","kind":"vulnerability","aliases":["CVE-2026-116522"],"related":[],"title":"Relevanssi WordPress plugin: stored script injection via comment field","description":"The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.28.5 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 requires the site to have both the comment indexing and comment highlighting options enabled, and the payload only fires when a visitor reaches a singular page via a Relevanssi search-result permalink carrying the highlight query parameter.","summary":"The Relevanssi search plugin for WordPress does not sanitize the 'comment' parameter, so an unauthenticated attacker can store scripts that run in the browser of anyone who opens an affected page. The payload only fires on singular pages reached through a Relevanssi search-result link carrying the highlight parameter, and only when comment indexing and comment highlighting are both enabled.","severity":"high","cvss":7.2,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["package","relevanssi","self-hosted","wordpress"],"not_affected_if":["comment-highlighting-off","comment-indexing-off","default-config"],"how_to_check":"- Check the installed Relevanssi plugin version against `4.28.5` in the WordPress admin plugin list or `wp plugin list`.\n- In Relevanssi settings, check whether both comment indexing and comment highlighting are enabled.","fix":"- Relevanssi versions up to and including `4.28.5` are affected; the sources do not name a fixed version.","status":"open","published_at":"2026-10-31T07:16:35+00:00","first_seen_at":"2026-10-31T07:34:07+00:00","triaged_at":"2026-10-31T07:34:33+00:00","updated_at":"2026-10-31T07:34:33+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-31T07:34:33Z","model":"claude-haiku-5-5","output":{"fix":"- Relevanssi versions up to and including `4.28.5` are affected; the sources do not name a fixed version.","reach":"internet","title":"Relevanssi WordPress plugin: stored script injection via comment field","impact":"medium","summary":"The Relevanssi search plugin for WordPress does not sanitize the 'comment' parameter, so an unauthenticated attacker can store scripts that run in the browser of anyone who opens an affected page. The payload only fires on singular pages reached through a Relevanssi search-result link carrying the highlight parameter, and only when comment indexing and comment highlighting are both enabled.","audience":"businesses","category":"package","nicknames":[],"who_cares":["wordpress","relevanssi","self-hosted"],"confidence":0.7,"fix_status":"unknown","needs_auth":"no","worst_case":"Attacker script runs in visitors' browsers on the affected site","analyst_note":"Confirm the fixed version of Relevanssi after 4.28.5 from the WordPress plugin page or NVD entry, since the sources do not state it.","how_to_check":"- Check the installed Relevanssi plugin version against `4.28.5` in the WordPress admin plugin list or `wp plugin list`.\n- In Relevanssi settings, check whether both comment indexing and comment highlighting are enabled.","plain_action":"","needs_analyst":true,"not_affected_if":["default-config","comment-highlighting-off","comment-indexing-off"],"who_is_affected":"Sites running Relevanssi up to and including 4.28.5 with both comment indexing and comment highlighting turned on. Sites on other versions, or with either option off, are not exposed through this flaw as described. Unauthenticated visitors can plant the payload, so the site's own admin access is not required.","user_interaction":"yes","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.00075,"input_tokens":4240,"output_tokens":651,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-116522':12A,15A '-2026':11A,14A '4.28.5':110C 'access':139C 'affect':51B 'anyon':47B 'arbitrari':128C 'attack':37B,125C 'better':86C 'browser':45B 'carri':68B,177C 'comment':8A,32B,75B,78B,101C,151C,154C 'cross':96C 'cross-sit':95C 'cve':10A,13A 'due':111C 'enabl':82B,157C 'escap':118C 'execut':135C 'field':9A 'fire':56B,162C 'highlight':70B,79B,155C,179C 'host':20B 'includ':109C 'index':76B,152C 'inject':6A,127C,141C 'input':114C 'insuffici':113C 'link':67B 'make':120C 'open':49B 'option':156C 'output':117C 'packag':16B 'page':52B,59B,132C,142C,169C 'paramet':33B,71B,102C,181C 'payload':54B,160C 'permalink':176C 'plugin':3A,25B,88C 'possibl':122C 'queri':180C 'reach':60B,166C 'relevanssi':1A,17B,23B,63B,84C,172C 'requir':144C 'result':66B,175C 'run':42B 'sanit':30B,115C 'script':5A,40B,98C,130C 'search':24B,65B,87C,174C 'search-result':64B,173C 'self':19B 'self-host':18B 'singular':58B,168C 'site':97C,146C 'store':4A,39B,94C 'unauthent':36B,124C 'user':138C 'version':105C 'via':7A,99C,170C 'visitor':165C 'vulner':92C 'web':129C 'whenev':136C 'wordpress':2A,21B,27B,90C","nicknames":[],"mitigations":[],"who_affected":"Sites running Relevanssi up to and including 4.28.5 with both comment indexing and comment highlighting turned on. Sites on other versions, or with either option off, are not exposed through this flaw as described. Unauthenticated visitors can plant the payload, so the site's own admin access is not required.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"first_public_at":"2026-10-31T07:16:35+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/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-116522","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116522","severity":null,"published_at":"2026-10-31T07:16:35+00:00","modified_at":"2026-10-31T07:16:35+00:00","first_seen_at":"2026-10-31T07:34:07+00:00","fetched_at":"2026-10-31T07:34:07+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}