Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-20745

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-20745
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:18 UTC · Revision 1

Source evidence

CVE-2018-20745

core-osv · Original source

Published 28 Jan 2019, 08:29 UTC

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.

osv:CVE-2018-20745
Complete source record
{
  "id": "6b72db9ee090bb9d211f16c855023bc7932fb55b7e62e652de9ca763b07f3285",
  "url": "https://osv.dev/vulnerability/CVE-2018-20745",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-20745",
    "summary": "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.",
    "evidence": "osv:CVE-2018-20745",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-20745",
      "aliases": [
        "CVE-2018-20745",
        "GHSA-cr6r-6xm9-ww22"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/yiisoft/yii2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ae8d9782707b89315194ec70a139fece122b8977"
                },
                {
                  "last_affected": "20aa5080189cbacd4180d3b115752817921eb364"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0"
                      },
                      {
                        "last_affected": "2.0.15.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20745.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:06.813567017Z",
      "provider": "osv",
      "references": [
        "https://www.usenix.org/system/files/conference/usenixsecurity18/sec18-chen.pdf",
        "https://github.com/yiisoft/yii2/issues/16193"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-20745",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 381297,
  "published_at": "2019-01-28T08:29:00.527+00:00"
}