Packagist (PHP)Worst: Critical13 advisories
yiisoft/yii2: known vulnerabilities
yiisoft/yii2 has 13 reviewed security advisories in the GitHub Advisory Database — 3 critical, 5 high, 5 moderate. The most recent was published 2026-05-20. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the yiisoft/yii2 versions running across your servers, containers and images, and ranks what to patch first.
How to fix yiisoft/yii2
Upgrade yiisoft/yii2 to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):
composer require yiisoft/yii2:^2.0.55 (composer audit)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (13)
Yii 2: Local file inclusion via view parameter name collision
High 7.4 CWE-20 CWE-98
— Affected: before 2.0.55. Fixed in 2.0.55. Published 2026-05-20. GHSA-5vpg-rj7q-qpw2 · CVE-2026-39850
yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key
Critical 9.0 CWE-424
— Affected: before 2.0.52. Fixed in 2.0.52. Published 2025-04-10. GHSA-ggwg-cmwp-46r5 · CVE-2024-58136 · In CISA KEV →
Unsafe Reflection in base Component class in yiisoft/yii2
High 8.1 CWE-470
— Affected: before 2.0.49.4. Fixed in 2.0.49.4. Published 2025-03-20. GHSA-cjcc-p67m-7qxm · CVE-2024-4990
Reflected Cross-site Scripting in yiisoft/yii2 Debug mode
Moderate 4.2 CWE-79
— Affected: from 2.0.43 up to 2.0.49.4. Fixed in 2.0.49.4. Published 2024-05-30. GHSA-qg5r-95m4-mjgj · CVE-2024-32877
Yii2 allows attackers to execute any local .php file via a relative path in the view parameter
Critical 9.8 CWE-22 CWE-98
— Affected: from 2.0.0 up to 2.0.5. Fixed in 2.0.5. Published 2023-09-21. GHSA-7cfq-72w2-24q4 · CVE-2015-5467
Withdrawn: SQL injection in Yii 2
Critical 9.8 CWE-79 CWE-89
— Affected: before 2.0.47. Fixed in 2.0.47. Published 2023-04-04. GHSA-gq63-p39p-jrjf · CVE-2023-26750
Unsafe deserialization in Yii 2
High 8.9 CWE-502
— Affected: before 2.0.38. Fixed in 2.0.38. Published 2020-09-15. GHSA-699q-wcff-g9mj · CVE-2020-15148
Yii Incorrectly Implements CORS
Moderate 5.9 CWE-346
— Affected: before 2.0.16. Fixed in 2.0.16. Published 2019-01-28. GHSA-cr6r-6xm9-ww22 · CVE-2018-20745
Yii Framework reflected Cross-site Scripting
High 7.5 CWE-79
— Affected: from 2.0.0 up to 2.0.14. Fixed in 2.0.14. Published 2018-01-22. GHSA-8gfq-c54m-3rf6 · CVE-2018-6010
Yii Framework Cross-Site Request Forgery (CSRF)
High 8.8 CWE-352
— Affected: from 2.0 up to 2.0.14. Fixed in 2.0.14. Published 2018-01-22. GHSA-cwhm-272p-3wj9 · CVE-2018-6009
Yii Cross-site Scripting Framework vulnerability
Moderate 6.1 CWE-79
— Affected: from 2.0.12 up to 2.0.13. Fixed in 2.0.13. Published 2017-07-21. GHSA-4c64-w8fg-xcq2 · CVE-2017-11516
Yii Framework Reflected XSS
Moderate 6.1 CWE-79
— Affected: before 2.0.11. Fixed in 2.0.11. Published 2017-03-27. GHSA-4xh9-5vh8-3p58 · CVE-2017-7271
Yii Framework Cross-site Scripting Vulnerability
Moderate CWE-79
— Affected: before 2.0.4. Fixed in 2.0.4. Published 2015-05-14. GHSA-w2xx-jp9f-gp8g · CVE-2015-3397
Find yiisoft/yii2 across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.