Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. yiisoft/yii2
  4. ›
  5. CVE-2018-20745

CVE-2018-20745: Origin Validation Error

May 14, 2022 (updated August 28, 2023)

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.

References

  • github.com/advisories/GHSA-cr6r-6xm9-ww22
  • github.com/yiisoft/yii2/issues/16193
  • github.com/yiisoft/yii2/pull/16198
  • nvd.nist.gov/vuln/detail/CVE-2018-20745
  • www.usenix.org/system/files/conference/usenixsecurity18/sec18-chen.pdf

Code Behaviors & Features

Detect and mitigate CVE-2018-20745 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.16

Fixed versions

  • 2.0.16

Solution

Upgrade to version 2.0.16 or above.

Impact 5.9 MEDIUM

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error

Source file

packagist/yiisoft/yii2/CVE-2018-20745.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:03 +0000.