Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-34297

Yii Yii2 Gii through 2.2.4 allows stored XSS by injecting a payload into any field.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-34297
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:08 UTC · Revision 1

Source evidence

CVE-2022-34297

core-osv · Original source

Published 9 Dec 2022, 00:00 UTC

Yii Yii2 Gii through 2.2.4 allows stored XSS by injecting a payload into any field.

osv:CVE-2022-34297
Complete source record
{
  "id": "d01bd537bc712a52c2e08facd521cdb31f9807966ed095b1acc583ea334977ac",
  "url": "https://osv.dev/vulnerability/CVE-2022-34297",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-34297",
    "summary": "Yii Yii2 Gii through 2.2.4 allows stored XSS by injecting a payload into any field.",
    "evidence": "osv:CVE-2022-34297",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-34297",
      "aliases": [
        "CVE-2022-34297",
        "GHSA-x87m-36g7-6mpw"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/yiisoft/yii2-gii",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "80893fc4c0df97f3638938948bf34ca43dd8bff6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.2.4"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "cpe": "cpe:2.3:a:yiiframework:gii:*:*:*:*:*:yii2:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.2.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.2.4",
            "2.2.3",
            "2.2.2",
            "2.2.1",
            "2.2.0",
            "2.1.4",
            "2.1.3",
            "2.1.2",
            "2.1.1",
            "2.1.0",
            "2.0.8",
            "2.0.7",
            "2.0.6",
            "2.0.5",
            "2.0.4",
            "2.0.3",
            "2.0.2",
            "2.0.1",
            "2.0.0",
            "2.0.0-rc",
            "2.0.0-beta"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-34297.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.646450819Z",
      "provider": "osv",
      "references": [
        "https://gist.github.com/be4r/b5c48d97ef6726d3ee37f995ee5aac81",
        "https://www.yiiframework.com/doc/guide/2.0/en/start-gii",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/34xxx/CVE-2022-34297.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-34297",
        "https://github.com/yiisoft/yii2-gii"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/34xxx/CVE-2022-34297.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-34297",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507050,
  "published_at": "2022-12-09T00:00:00+00:00"
}