# CVE-2022-34297: Yii2 Gii Cross-site Scripting vulnerability

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-09T00:00:00.000Z
- Modified: 2026-06-17T04:50:04.070Z
- Also known as: GHSA-x87m-36g7-6mpw
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- yiisoft/yii2-gii (Packagist): up to 2.2.4
- yiiframework gii: up to 2.2.4

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://gist.github.com/be4r/b5c48d97ef6726d3ee37f995ee5aac81> (exploit, third-party-advisory, web)
- <https://github.com/yiisoft/yii2-gii> (product, web)
- <https://www.yiiframework.com/doc/guide/2.0/en/start-gii> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-34297> (advisory)

## Sources

- CVE List: [CVE-2022-34297](https://www.cve.org/CVERecord?id=CVE-2022-34297), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-x87m-36g7-6mpw](https://github.com/advisories/GHSA-x87m-36g7-6mpw), CC-BY-4.0, modified 2025-04-23
- NVD: [CVE-2022-34297](https://nvd.nist.gov/vuln/detail/CVE-2022-34297), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-34297 · Whole record: https://cve.day/CVE-2022-34297.json · Rebuilt by cve.day 2026-11-25T22:58:17.341Z
