CVE-2026-126745: Twig Template Injection in Drupal Real Name
A server-side template injection vulnerability in the Drupal Real Name module before version 2.0.1 allows authenticated users to inject Twig syntax through editable profile data incorporated into a configured real name pattern. Insufficient sanitization causes the injected syntax to be evaluated when the user's name is displayed. The vulnerability can affect confidentiality; arbitrary code execution is not established.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes attacker-controlled Twig syntax to be evaluated during name rendering, with some confidentiality impact. The issue is rated moderately critical (10/25). No integrity impact is identified, and arbitrary code execution is not established.
Mitigation
If you can’t patch tonight, do this now.
Until the update is applied, remove user-supplied data from configured real name patterns or prevent users from editing the profile data incorporated into those patterns.
Remediation
Patch, then assume compromise.
Upgrade the Drupal Real Name module to version 2.0.1 or a later fixed release. The update clears existing stored real names so they are regenerated using the corrected code.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-126745 exploited in the wild?
- As of Nov 11, 2026, Mallory has no reports of CVE-2026-126745 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-126745?
- As of Nov 11, 2026, Mallory has found no public exploit for CVE-2026-126745.
- Is there a patch for CVE-2026-126745?
- Upgrade the Drupal Real Name module to version 2.0.1 or a later fixed release. The update clears existing stored real names so they are regenerated using the corrected code.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.