Vulnerabilities / Relevanssi / WPSEC-2026-3831

Relevanssi <= 4.28.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via Post Tags

Medium 4.9 CWE-79Fixed in 4.28.10
ID
WPSEC-2026-3831
Plugin
Relevanssi – A Better Search (relevanssi)
Affected
all versions before 4.28.10
Remediation
Update to 4.28.10 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-24
Attack surface
Relevanssi on WPSec AttackSurface
Fix released
Published

Description

The Relevanssi plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post tag names in all versions up to, and including, 4.28.9. This is due to insufficient output sanitization in the relevanssi_the_tags() and relevanssi_get_the_tags() template functions. Each tag name goes through Relevanssi's highlighting, which decodes HTML entities, so HTML-encoded markup stored in a tag name becomes live HTML. When the list is returned rather than echoed, it is returned without sanitization. This makes it possible for authenticated attackers with contributor-level access and above, who can create tags when they save a post, to inject arbitrary web scripts. The scripts run when a user visits a page whose theme outputs the returned tag list.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0