Stored cross-site scripting in Relevanssi search plugin for WordPress
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
Relevanssi Premium through 2.31.11 and comesio's Relevanssi (A Better Search) through 4.28.9 are affected. Insufficient input sanitization and output escaping of tag names (CWE-79) lets stored entity-encoded input become live HTML when the plugin renders the tag list. An authenticated attacker with contributor-level access or higher can inject scripts into pages that run whenever a user opens an injected page.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
The Relevanssi – A Better Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'name (REST /wp/v2/tags) / tax_input[post_tag] (post save)' parameter in all versions up to, and including, 4.28.9 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. This is exploitable because WordPress's wp_filter_kses stores entity-encoded payloads (e.g., <img src=x onerror=...>) verbatim as literal text in the database, but Relevanssi's relevanssi_entity_decode() subsequently converts them into live HTML markup before the unescaped return branch of relevanssi_the_tags() splices them into the tag list consumed by the theme.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
No fixed version is listed for Relevanssi Premium or for comesio's Relevanssi (A Better Search).
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Timeline
- 2026-11-26 Threatist record created from CVE-2026-135267
- 2026-11-27 Alias added: GHSA-chw2-84pj-65qq
References
Other 6
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6cabeb52-f089-469b-adcd-72aa6fcc3676?source=cve
- https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.9/lib/utils.php#L1543
- https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.9/lib/utils.php#L644
- https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.9/lib/excerpts-highlights.php#L690
- https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.9/lib/excerpts-highlights.php#L1700
- https://github.com/msaari/relevanssi/commit/e37730239b7f058882589467ca4afbbe48747ec1
More comesio vulnerabilities
- TI-2023-06585 Relevanssi (Free < 4.22.0, Premium < 2.25.0) - Unauthenticated Private/Draft Post Disclosure CVSS 3.1MEDIUM 5.3
- TI-2024-08374 Relevanssi < 4.23.1 - Contributor+ Stored XSS CVSS 3.1MEDIUM 5.4
- TI-2024-03012 Relevanssi – A Better Search <= 4.22.1 - Unauthenticated Second Order CSV Injection CVSS 3.1CRITICAL 9.8
- TI-2025-03923 Relevanssi <= 4.24.4 (Free) and <= 2.27.5 (Premium) - Unauthenticated SQL Injection CVSS 3.1HIGH 7.5
- TI-2024-03011 Relevanssi – A Better Search <= 4.22.1 - Missing Authorization to Unauthenticated Count Option Update CVSS 3.1HIGH 8.2
- TI-2016-08987 The Relevanssi Premium plugin before 1.14.6.1 for WordPress has SQL injection with resultant unsafe unserialization. CVSS 3.1HIGH 8.8
Sources
- CVE-2026-135267 · CVE Program
- CVE-2026-135267 · NVD
- FIRST EPSS
- GHSA-chw2-84pj-65qq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences