CVE-2018-20745
MEDIUM 5.9CVSS 3.0Yii Incorrectly Implements CORS
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.
- Published
- 28 Jan 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-346
- Also known as
- GHSA-cr6r-6xm9-ww22
- Sources
- NVDJSONOSV GHSA-cr6r-6xm9-ww22JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yiiframework | yiicpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:* |
>= 2.0, <= 2.0.15.1 | |
| OSV | Packagist | yiisoft/yii2 | < 2.0.16 | 2.0.16 |
References
- https://github.com/yiisoft/yii2/issues/16193 · Issue Tracking, Third Party Advisory, WEB
- https://www.usenix.org/system/files/conference/usenixsecurity18/sec18-chen.pdf · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-20745 · ADVISORY
- https://github.com/yiisoft/yii2/pull/16198 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 28 Jan 2019)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 May 2022)