drupal/govuk_theme - SA-CONTRIB-2022-027
The GOV.UK Theme (govuk_theme) is a Drupal theme for the GOV.UK Design System.
The 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.
The vulnerability is mitigated by the facts, that:
- An attacker must have one of several permissions, of which at least some are commonly only assigned to either editors, site builders or administrators.
- For some of the vulnerabilities, certain contributed modules must be enabled.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/govuk_theme | < 1.9.0 | 1.9.0 |
| Drupal module | drupal/govuk_theme | < 1.9.0 | 1.9.0 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/govuk_theme- Disclosed
- 23.02.2022
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2022-027 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/govuk_theme
All published vulnerabilities of this package (Drupal module), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.