vova07 Yii2 FileAPI Widget UploadAction.php run cross site scripting
Description
UNSUPPORTED WHEN ASSIGNED A vulnerability was found in vova07 Yii2 FileAPI Widget up to 0.1.8. It has been declared as problematic. Affected by this vulnerability is the function run of the file actions/UploadAction.php. The manipulation of the argument file leads to cross site scripting. The attack can be launched remotely. Upgrading to version 0.1.9 is able to address this issue. The identifier of the patch is c00d1e4fc912257fca1fce66d7a163bdbb4c8222. It is recommended to upgrade the affected component. The identifier VDB-217141 was assigned to this vulnerability. NOTE: This vulnerability only affects products that are no longer supported by the maintainer.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vova07/yii2-fileapi-widgetPackagist | < 0.1.9 | 0.1.9 |
Affected products
1- Range: 0.1.0
Patches
1c00d1e4fc912Fix XSS vulnerability
2 files changed · +4 −2
actions/UploadAction.php+2 −1 modified@@ -8,6 +8,7 @@ use yii\base\InvalidCallException; use yii\base\InvalidConfigException; use yii\helpers\FileHelper; +use yii\helpers\Html; use yii\web\BadRequestHttpException; use yii\web\Response; use yii\web\UploadedFile; @@ -93,7 +94,7 @@ public function run() if ($model->hasErrors()) { $result = [ - 'error' => $model->getFirstError('file') + 'error' => Html::encode($model->getFirstError('file')), ]; } else { if ($this->unique === true && $model->file->extension) {
.gitignore+2 −1 modified@@ -1 +1,2 @@ -.idea \ No newline at end of file +/vendor +/composer.lock
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
6- github.com/vova07/yii2-fileapi-widget/commit/c00d1e4fc912257fca1fce66d7a163bdbb4c8222ghsapatchWEB
- github.com/vova07/yii2-fileapi-widget/releases/tag/0.1.9ghsapatchWEB
- github.com/advisories/GHSA-j82x-fh8h-326gghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2017-20158ghsaADVISORY
- vuldb.comghsasignaturepermissions-requiredWEB
- vuldb.comghsavdb-entrytechnical-descriptionWEB
News mentions
0No linked articles in our index yet.