VYPR
Moderate severityNVD Advisory· Published Dec 15, 2022· Updated Aug 3, 2024

Roots soil Plugin CleanUpModule.php language_attributes cross site scripting

CVE-2022-4524

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.

PackageAffected versionsPatched versions
roots/soilPackagist
< 4.1.04.1.0

Affected products

1

Patches

1
0c9151e00ab0

🔒️ XSS fix on `language_attributes` (#285)

https://github.com/roots/soilBen WordJul 31, 2022via ghsa
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

News mentions

0

No linked articles in our index yet.