- Package
- drupal/webform
- Fixed in
- 6.2.12, 6.3.1
- Published
- Wed 23 Sep 2026, 17:11 LisbonUpdated Mon 26 Oct 2026, 02:26 Lisbon
In plain words
Webform does not sufficiently sanitise text counter settings before passing them to its bundled jQuery Text Counter library, which can lead to cross-site scripting under certain configurations. An attacker must be able to create or edit affected Webform elements, or place specially crafted counter markup on a page where the Webform counter JavaScript is active.
Am I affected?
Look for drupal/webform and its version in composer.lock. The advisory lists fixes in 6.2.12 and 6.3.1 but gives no affected version ranges. Review text counter configuration on Webform elements, who can create or edit those elements, and whether users can place counter markup on pages where the Webform counter JavaScript is active.
What to do
Check which version you have, then update to a fixed release for your branch (6.2.12, 6.3.1):
composer show drupal/webform | grep versions
composer update drupal/webform
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
If you cannot update yet
The vulnerability is mitigated by the requirement that an attacker can create or edit affected Webform elements, or place specially crafted counter markup on a page where the Webform counter JavaScript is active.
The advisory's description
The Webform module allows site builders to create forms, collect submissions, and configure access to forms and submission data.
The module does not sufficiently sanitize text counter configuration before passing options to the bundled jQuery Text Counter library. Under certain configurations, this can allow markup from counter-related settings to be inserted into the page leading to a cross-site scripting vulnerability.
This vulnerability is mitigated by the fact that an attacker must be able to create or edit affected Webform elements, or place specially crafted counter markup on a page where the Webform counter JavaScript is active.
The advisory
- OSV.dev: DRUPAL-CONTRIB-2026-155
- The week's digest, with the other advisories from 21 Sep 2026
- All advisories for drupal/webform