CVE-2026-126745
JSON

Not scored

Real Name - Moderately critical - Twig injection - SA-CONTRIB-2026-336

Severity
Not scored
Exploit likelihood
0.39% (higher than 34% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
drupal
Also known as
DRUPAL-CONTRIB-2026-336

Description

Improper Neutralization of Special Elements Used in a Template Engine vulnerability in Drupal Real Name allows Code Injection. This issue affects Real Name versions: from 0.0.0 to 2.0.1.

Affected

Product or packageVersionsReported by
Drupal Real Namefrom 0.0.0 before 2.0.1CVE List
drupal/realname (Packagist:https://packages.drupal.org/8)before 2.0.1Drupal Security Team

Classification

What each source says

CVE List

Improper Neutralization of Special Elements Used in a Template Engine vulnerability in Drupal Real Name allows Code Injection. This issue affects Real Name versions: from 0.0.0 to 2.0.1.

Drupal Security Team

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-126745 changed 2026-11-26CVE Terms of Use
Drupal Security TeamDRUPAL-CONTRIB-2026-336 changed 2026-11-11MIT