SA-CONTRIB-2026-367: XSS

Published Dec 2, 2026
·
Updated

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.

Credit

Pedro Cambra (pcambra)

Affected Software

1 affected componentFixes available
composer/drupal/scanner<2.0.3
2.0.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/scanner to a version that resolves this vulnerability.

    Fixed in 2.0.3

Event History

Dec 2, 2026
Advisory Published
via Drupal·12:00 AM
Data Sourced
via Drupal·12:00 AM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Who can exploit this vulnerability?

An attacker must have a role with the "Perform search only" permission and must be able to use a content item whose title contains inappropriate HTML.

2

Are all users of the module exposed?

The issue is mitigated by the required permission and malicious HTML in a content title. Users without the "Perform search only" permission are not described as being able to trigger it.

3

Where does the XSS appear?

The insufficient sanitization occurs in the scanner's returned search results.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203