SA-CONTRIB-2026-336: Critical severity composer/drupal/realname vulnerability

Published Nov 11, 2026
·
Updated

This module enables you to display users by a configurable "real name" pattern built from tokens, instead of by their username. The module does not sufficiently sanitize user input used in name patterns. A user can place Twig syntax in their own profile data and have it evaluated when their name is displayed. This vulnerability is mitigated by the fact that the site must be configured with a real name pattern that includes user-supplied data, and the attacker must be able to edit that data on their own account.

Credit

Shawn Smiley (shawn_smiley)

Affected Software

1 affected componentFixes available
composer/drupal/realname<2.0.1
2.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 2.0.1

Event History

Nov 11, 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

Which deployments are affected in practice?

Exposure requires a configured real-name pattern that incorporates user-supplied profile data. Deployments without such a pattern are mitigated by the stated configuration requirement.

2

What does an attacker need to exploit this issue?

The attacker must be able to edit the profile data on their own account and enter Twig syntax into data used by the configured name pattern.

3

How can an administrator assess whether their configuration is exposed?

Review the configured real-name pattern and determine whether it includes fields that users can edit in their own profiles. If it does, user-provided values in those fields can be evaluated when the user's name is displayed.

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