DRUPAL-CONTRIB-2026-367: XSS
The Search and Replace Scanner module provides a way for content administrators to search for specific strings across all (enabled) content and, optionally, replace the strings with something else.
The module doesn't sufficiently sanitize for cross-site scripting (XSS) in the return results.
This vulnerability is mitigated by the fact that an attacker must have a role with the permission "Perform search only" with a content item that contains inappropriate HTML in the title.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/scannerto a version that resolves this vulnerability.Fixed in 2.0.3
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs a role granted the "Perform search only" permission and must be able to use a content item whose title contains inappropriate HTML. The issue is therefore mitigated by the required permission and crafted content title.
What should be reviewed while remediation is pending?
Review which roles have the "Perform search only" permission and whether content titles contain inappropriate HTML. Restrict that permission to trusted users where possible.