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
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
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 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.