CVE-2022-34297
mediumpriority · track · 22EPSS 0.006 · 50 %ileEUUSEPSS · scored 2026-10-28
Yii Yii2 Gii through 2.2.4 allows stored XSS by injecting a payload into any field.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-x87m-36g7-6mpwYii2 Gii Cross-site Scripting vulnerability2022-12-10ghsa · osvUS
Some fields like Message Category (requires I18N enabled) in Model Generator, CRUD Generator or Form Generator, Author Name in Extension Generator, etc. are being cached without sanitisation of their contents when the Preview button is pressed. This leads to possibility of injecting malicious javascript in specified pages by placing it in said fields and caching it by pressing Preview button. On each consequent visit of specified pages malicious javascript will be loaded from server and executed in client's browser.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-34297/cnnvd
- https://gist.github.com/be4r/b5c48d97ef6726d3ee37f995ee5aac81cnnvd
- https://github.com/yiisoft/yii2-giiPatchcnnvd
- https://gist.github.com/be4r/b5c48d97ef6726d3ee37f995ee5aac81enisa_euvd
- https://gist.github.com/be4r/b5c48d97ef6726d3ee37f995ee5aac81ExploitThird Party Advisorynvd
- https://github.com/yiisoft/yii2-giinvd
- https://www.yiiframework.com/doc/guide/2.0/en/start-giinvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan