{"id":"DRUPAL-CONTRIB-2022-027","aliases":["DRUPAL-CONTRIB-2022-027"],"related":[],"kind":"vulnerability","state":"published","title":"The GOV.UK Theme (govuktheme) is a Drupal theme for the GOV.UK Design System.","summary":"The GOV.UK Theme (`govuk_theme`) is a Drupal theme for the GOV.UK Design System.\n\nThe theme doesn't sanitize user input in certain cases, which leads to Cross-Site-Scripting (XSS) vulnerabilities. An attacker that can create or edit certain entities or configuration may be able to exploit one or more Cross-Site-Scripting (XSS) vulnerabilities to target visitors of the site, including site admins with privileged access.\n\nThe vulnerability is mitigated by the facts, that:\n\n* An attacker must have one of several permissions, of which at least some are commonly only assigned to either editors, site builders or administrators.\n* For some of the vulnerabilities, certain contributed modules must be enabled.","summaryFormat":"markdown","summarySource":"drupal","descriptions":[{"lang":"en","text":"The GOV.UK Theme (`govuk_theme`) is a Drupal theme for the GOV.UK Design System.\n\nThe theme doesn't sanitize user input in certain cases, which leads to Cross-Site-Scripting (XSS) vulnerabilities. An attacker that can create or edit certain entities or configuration may be able to exploit one or more Cross-Site-Scripting (XSS) vulnerabilities to target visitors of the site, including site admins with privileged access.\n\nThe vulnerability is mitigated by the facts, that:\n\n* An attacker must have one of several permissions, of which at least some are commonly only assigned to either editors, site builders or administrators.\n* For some of the vulnerabilities, certain contributed modules must be enabled.","format":"markdown","source":"drupal"}],"published":"2022-02-23T17:18:07.000Z","modified":"2026-09-10T03:45:55.299Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.9.0"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/govuk_theme","purl":"pkg:composer/drupal/govuk_theme?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2022-027","tags":["web"],"sources":["drupal"]}],"credits":["Patrick Fey"],"sources":[{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2022-027","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2022-027","licence":"MIT","modified":"2026-09-10T03:45:55.299Z"}],"updatedAt":"2026-11-25T22:56:30.134Z"}