MEDIUM5.9
GHSA-cr6r-6xm9-ww22
Yii Incorrectly Implements CORS
Quick fix
GHSA-cr6r-6xm9-ww22 — yiisoft/yii2: upgrade to the fixed version with the command below.
composer require yiisoft/yii2:^2.0.16Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/yiisoft/yii2"]}'