# yiisoft/yii2 (Packagist) vulnerabilities

12 known vulnerabilities (1 critical, 3 high, 1 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Registry: https://packagist.org/packages/yiisoft/yii2

## Advisories (12)

### [CVE-2026-39850](https://cve.now/CVE-2026-39850): Yii 2: Local file inclusion via view parameter name collision

- Severity: High 7.4
- Published: May 20, 2026
- Affected: fixed in 2.0.55.

### [CVE-2024-58136](https://cve.now/CVE-2024-58136): Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an \_\_class array key, a CVE-2024-4990 regression, as exploited i

- Severity: Critical 9.0 · KEV
- Published: Apr 10, 2025
- Affected: fixed in 2.0.52.

### [CVE-2024-4990](https://cve.now/CVE-2024-4990): Unsafe Reflection in base Component class in yiisoft/yii2

- Severity: High 8.1
- Published: Mar 20, 2025
- Affected: fixed in 2.0.49.4.

### [CVE-2024-32877](https://cve.now/CVE-2024-32877): Reflected Cross-site Scripting in yiisoft/yii2 Debug mode

- Severity: Medium 4.2
- Published: May 30, 2024
- Affected: from 2.0.43, fixed in 2.0.49.4.

### [CVE-2015-5467](https://cve.now/CVE-2015-5467): web\\ViewAction in Yii (aka Yii2) 2.x before 2.0.5 allows attackers to execute any local .php file via a relative path in the view…

- Severity: Unrated
- Published: Sep 21, 2023
- Affected: from 2.0.0, fixed in 2.0.5.

### [CVE-2020-15148](https://cve.now/CVE-2020-15148): Unsafe deserialization in Yii 2

- Severity: High 8.9
- Published: Sep 15, 2020
- Affected: fixed in 2.0.38.

### [CVE-2018-20745](https://cve.now/CVE-2018-20745): Yii 2.x through 2.0.15.1 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible…

- Severity: Unrated
- Published: Jan 28, 2019
- Affected: fixed in 2.0.16.

### [CVE-2018-6010](https://cve.now/CVE-2018-6010): In Yii Framework 2.x before 2.0.14, remote attackers could obtain potentially sensitive information from exception messages, or exploit…

- Severity: Unrated
- Published: Jan 22, 2018
- Affected: from 2.0.0, fixed in 2.0.14.

### [CVE-2018-6009](https://cve.now/CVE-2018-6009): In Yii Framework 2.x before 2.0.14, the switchIdentity function in web/User.php did not regenerate the CSRF token upon a change of identity.

- Severity: Unrated
- Published: Jan 22, 2018
- Affected: from 2.0, fixed in 2.0.14.

### [CVE-2017-11516](https://cve.now/CVE-2017-11516): An XSS vulnerability exists in framework/views/errorHandler/exception.php in Yii Framework 2.0.12 affecting the exception screen when…

- Severity: Unrated
- Published: Jul 21, 2017
- Affected: from 2.0.12, fixed in 2.0.13.

### [CVE-2017-7271](https://cve.now/CVE-2017-7271): Reflected Cross-site scripting (XSS) vulnerability in Yii Framework before 2.0.11, when development mode is used, allows remote attackers…

- Severity: Unrated
- Published: Mar 27, 2017
- Affected: fixed in 2.0.11.

### [CVE-2015-3397](https://cve.now/CVE-2015-3397): Cross-site scripting (XSS) vulnerability in Yii Framework before 2.0.4 allows remote attackers to inject arbitrary web script or HTML via…

- Severity: Unrated
- Published: May 14, 2015
- Affected: fixed in 2.0.4.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/packagist/yiisoft/yii2
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
