Composer yiisoft/yii2 has 13 known advisories in the phpwarden feed, 1 actively exploited. Feed 2026.11.23.2, updated 2026-11-23.
| CVE | Title | Severity | CVSS | Affected | Fixed in |
|---|---|---|---|---|---|
| CVE-2024-58136 KEV | yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key | critical | 9.0 | <2.0.52 | 2.0.52 |
| CVE-2024-4990 | Unsafe Reflection in base Component class in yiisoft/yii2 | high | 8.1 | <2.0.49.4 | 2.0.49.4 |
| CVE-2020-15148 | Unsafe deserialization in Yii 2 | high | 8.9 | <2.0.38 | 2.0.38 |
| CVE-2018-6010 | Yii Framework reflected Cross-site Scripting | high | 7.5 | >=2.0.0 and <2.0.14 or <2.0.14 | 2.0.14 |
| CVE-2015-3397 | Yii Framework Cross-site Scripting Vulnerability | medium | 0.0 | <2.0.4 | 2.0.4 |
| CVE-2018-7269 | Potential SQL injection in methods `yii\db\ActiveRecord::findOne()` and `::findAll()` | unknown | 0.0 | <2.0.12.1 or >=2.0.13 and <2.0.13.2 or >=2.0.14 and <2.0.15 | 2.0.12.1, 2.0.13.2, 2.0.15 |
| CVE-2017-7271 | Yii Framework Reflected XSS | medium | 6.1 | <2.0.11 | 2.0.11 |
| CVE-2015-5467 | Yii2 allows attackers to execute any local .php file via a relative path in the view parameter | critical | 9.8 | >=2.0.0 and <2.0.5 or <2.0.5 | 2.0.5 |
| CVE-2017-11516 | Yii Cross-site Scripting Framework vulnerability | medium | 6.1 | >=2.0.12 and <2.0.13 | 2.0.13 |
| CVE-2018-6009 | Yii Framework Cross-Site Request Forgery (CSRF) | high | 8.8 | >=2.0 and <2.0.14 or <2.0.14 | 2.0.14 |
| CVE-2018-20745 | Yii Incorrectly Implements CORS | medium | 5.9 | <2.0.16 | 2.0.16 |
| CVE-2026-39850 | Yii 2: Local file inclusion via view parameter name collision | high | 7.4 | <2.0.55 | 2.0.55 |
| CVE-2024-32877 | Reflected Cross-site Scripting in yiisoft/yii2 Debug mode | medium | 4.2 | >=2.0.43 and <2.0.49.4 | 2.0.49.4 |
Is yiisoft/yii2 safe to use?
Version 2.0.55 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.
Is yiisoft/yii2 being actively exploited?
Yes. 1 of its 13 known vulnerabilities is on CISA's Known Exploited Vulnerabilities list, meaning attackers are using it now. Update before anything else.
How do I check my own site?
Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.
Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.
# PHP projects (recommended) composer require --dev phpwarden/phpwarden # then vendor/bin/phpwarden deps composer.lock # or, without Composer pipx install phpwarden && phpwarden deps composer.lock
Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command
Install docs How findings are rankedMaintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.
[](https://phpwarden.io/packages/yiisoft/yii2)