HighGHSA-cwhm-272p-3wj9CVE-2018-6009
Yii Framework Cross-Site Request Forgery (CSRF)
Published 14 May 2022 · Updated 24 Apr 2024
Affected packages
yiisoft/yii2Composer
- Affected
- >=2.0 <2.0.14
- Fixed in
- 2.0.14
Update to the fixed version for your release line, for example:
composer require yiisoft/yii2:^2.0.14yiisoft/yii2-devComposer
- Affected
- >=2.0 <2.0.14
- Fixed in
- 2.0.14
Update to the fixed version for your release line, for example:
composer require yiisoft/yii2-dev:^2.0.14Details
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.
Is GHSA-cwhm-272p-3wj9 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
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-6009
- Linkgithub.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-6009.yaml
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6009.yaml
- Packagegithub.com/yiisoft/yii2-framework
- Linkwww.yiiframework.com/news/165/yii-2-0-14-is-released
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.