Drupal core didn't filter some error messages well enough. An attacker can use this to run their own script in the browser of someone who opens a crafted link to your site. This is reflected cross-site scripting (XSS): the attack lives in the link, not on the site. The script runs with that visitor's session, so it can read or change what they can. See Drupal's advisory.

Who is affected

Every site on an affected version of drupal/core. Drupal says all module configurations are exploitable, and the attacker needs no account. The visitor does have to open the attacker's link. Sites protected by Drupal Steward are already covered, but Drupal still recommends updating.

What to do

Update to the fixed release for your branch:

  • Drupal 10.3: update to 10.3.13
  • Drupal 10.4: update to 10.4.3
  • Drupal 11.0: update to 11.0.12
  • Drupal 11.1: update to 11.1.3

Drupal 10 releases before 10.3 no longer get security fixes, so move to a supported branch.

Reported by Arne, bdanin, Douglas Groene, Dragos Dumitrescu, Flo Kosiol, Gerardo Cadau, Justin Christoffersen, nuwans, Sven Decabooter and Will Gunn.