Descrizione
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.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.4, EPSS 0.4% (percentile 21).
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare una Content-Security-Policy restrittiva e regole WAF contro XSS; invitare gli utenti a non aprire link sospetti verso l'applicazione.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Riferimenti
- Riferimentohttps://github.com/msaari/relevanssi/commit/e37730239b7f058882589467ca4afbbe48747ec1
- Riferimentohttps://plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.9/lib/excerpts-highlights.php#L1700
- Riferimentohttps://plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.9/lib/excerpts-highlights.php#L690
- Riferimentohttps://plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.9/lib/utils.php#L1543
- Riferimentohttps://plugins.trac.wordpress.org/browser/relevanssi/tags/4.28.9/lib/utils.php#L644
- Riferimentohttps://www.wordfence.com/threat-intel/vulnerabilities/id/6cabeb52-f089-469b-adcd-72aa6fcc3676?source=cve