HighGHSA-5vpg-rj7q-qpw2CVE-2026-39850
Yii 2: Local file inclusion via view parameter name collision
Published 11 May 2026 · Updated 10 Sept 2026
Affected package
yiisoft/yii2Composer
- Affected
- <2.0.55
- Fixed in
- 2.0.55
Update to the fixed version for your release line, for example:
composer require yiisoft/yii2:^2.0.55Details
The core view rendering method View::renderPhpFile() calls extract($_params_, EXTR_OVERWRITE) before the require statement that includes the view file. A caller-controlled parameter named _file_ in the $params array overwrites the internal local variable that specifies which file is included — enabling a Local File Inclusion primitive.
Impact
- Local File Inclusion (arbitrary file read via non-PHP files)
- Potential RCE if attacker can write PHP files via a separate primitive
- Information disclosure
Patches
2.0.55
Workarounds
No.
Is GHSA-5vpg-rj7q-qpw2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected yiisoft/yii2, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.