MediumGHSA-cr6r-6xm9-ww22CVE-2018-20745

Yii Incorrectly Implements CORS

Published 14 May 2022 · Updated 16 Feb 2024

Affected package

yiisoft/yii2Composer
Affected
<2.0.16
Fixed in
2.0.16
Update to the fixed version for your release line, for example:composer require yiisoft/yii2:^2.0.16

Details

Yii 2.x through 2.0.15.1 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible with the CORS security design, and could lead to CORS misconfiguration security problems.

Is GHSA-cr6r-6xm9-ww22 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.