# CVE-2017-20158: vova07 Yii2 FileAPI Widget UploadAction.php run cross site scripting

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.5
- **CVSS:** 3.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.60% (percentile 42, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-j82x-fh8h-326g
- **Published:** 2022-12-31T10:00:26.281Z
- **Modified:** 2026-06-17T01:15:17.877Z

## Who should check

- Projects that depend on Packagist package vova07/yii2-fileapi-widget (\< 0.1.9)
- Anyone running vova07 Yii2 FileAPI Widget 0.1.0; 0.1.1; 0.1.2; 0.1.3; 0.1.4; 0.1.5; 0.1.6; 0.1.7; 0.1.8

## 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 and fixed versions

- Packagist `vova07/yii2-fileapi-widget`: affected \< 0.1.9; fixed 0.1.9 (osv)
- vova07 Yii2 FileAPI Widget: 0.1.0; 0.1.1; 0.1.2; 0.1.3; 0.1.4; 0.1.5; 0.1.6; 0.1.7; 0.1.8 (cvelist)

## Mitigation

- Upgrade vova07/yii2-fileapi-widget to 0.1.9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2017-20158. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2017-20158.md
Affected: vova07/yii2-fileapi-widget < 0.1.9
Fixed in: 0.1.9

Steps:
1. Search this machine and project for vova07/yii2-fileapi-widget (Packagist), vova07 Yii2 FileAPI Widget: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2017-20158 being exploited?

There is no confirmed exploitation: CVE-2017-20158 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2017-20158?

Low: CVSS 3.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2017-20158?

vova07/yii2-fileapi-widget \< 0.1.9.

### Is there a fix for CVE-2017-20158?

Yes. Fixed in 0.1.9. Upgrade vova07/yii2-fileapi-widget to 0.1.9 or later.

### How do I check if I'm affected by CVE-2017-20158?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2017-20158>
- patch: <https://github.com/vova07/yii2-fileapi-widget/commit/c00d1e4fc912257fca1fce66d7a163bdbb4c8222>
- patch: <https://github.com/vova07/yii2-fileapi-widget/releases/tag/0.1.9>
- article: <https://vuldb.com/?id.217141>
- other: <https://vuldb.com/?ctiid.217141>
- other: <https://github.com/vova07/yii2-fileapi-widget>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2017-20158>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-j82x-fh8h-326g> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2017-20158> · JSON: <https://flawdb.com/api/v1/entries/CVE-2017-20158>
