Roots soil Plugin CleanUpModule.php language_attributes cross site scripting
Description
A vulnerability, which was classified as problematic, was found in Roots soil Plugin up to 4.0.x. Affected is the function language_attributes of the file src/Modules/CleanUpModule.php. The manipulation of the argument language leads to cross site scripting. It is possible to launch the attack remotely. Upgrading to version 4.1.0 is able to address this issue. The name of the patch is 0c9151e00ab047da253e5cdbfccb204dd423269d. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-215904.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
roots/soilPackagist | < 4.1.0 | 4.1.0 |
Affected products
1- Range: 4.0
Patches
10c9151e00ab0🔒️ XSS fix on `language_attributes` (#285)
1 file changed · +1 −1
src/Modules/CleanUpModule.php+1 −1 modified@@ -249,7 +249,7 @@ public function languageAttributes() $attributes[] = 'dir="rtl"'; } - $lang = get_bloginfo('language'); + $lang = esc_attr(get_bloginfo('language')); if ($lang) { $attributes[] = "lang=\"{$lang}\"";
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/roots/soil/commit/0c9151e00ab047da253e5cdbfccb204dd423269dghsamitigationpatchWEB
- github.com/advisories/GHSA-jw6x-4h8h-569xghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-4524ghsaADVISORY
- github.com/roots/soil/pull/285ghsarelatedWEB
- github.com/roots/soil/releases/tag/4.1.0ghsamitigationWEB
- github.com/roots/soil/releases/tag/4.1.1ghsaWEB
- vuldb.comghsatechnical-descriptionvdb-entryWEB
News mentions
0No linked articles in our index yet.