{"id":"CVE-2026-126745","aliases":["CVE-2026-126745","DRUPAL-CONTRIB-2026-336"],"related":[],"kind":"vulnerability","state":"published","title":"Real Name - Moderately critical - Twig injection - SA-CONTRIB-2026-336","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"This module enables you to display users by a configurable \"real name\" pattern built from tokens, instead of by their username.\n\nThe module does not sufficiently sanitize user input used in name patterns.  \nA user can place Twig syntax in their own profile data and have it evaluated when their name is displayed.\n\nThis 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.","format":"markdown","source":"drupal"}],"published":"2026-11-11T18:05:10.000Z","modified":"2026-11-26T00:44:36.928Z","severities":[],"cwes":["CWE-1336"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","fixed":"2.0.1","status":"affected"}],"vendor":"Drupal","product":"Real Name","repo":"https://git.drupalcode.org/project/realname","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.1"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/realname","purl":"pkg:composer/drupal/realname?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2026-336","tags":["web"],"sources":["cvelist","drupal"]}],"credits":["Shawn Smiley (shawn_smiley)","Lucas Hedding (heddn)","Phill Tran (philltran)","Swan Kalata (akalata)","Bram Driesen (bramdriesen)","Greg Knaddison (greggles)","Heine Deelstra (heine)","Pierre Rudloff (prudloff)","Jess  (xjm)"],"assigner":"drupal","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-126745","url":"https://www.cve.org/CVERecord?id=CVE-2026-126745","licence":"CVE Terms of Use","modified":"2026-11-26T00:44:36.928Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2026-336","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2026-336","licence":"MIT","modified":"2026-11-11T18:45:04.722Z"}],"updatedAt":"2026-11-26T00:57:25.927Z","epss":{"score":0.00387,"percentile":0.34968,"date":"2026-12-01T12:00:22.000Z"}}