CVE-2022-34297 Yii2 Gii Cross-site Scripting vulnerability
Attackers can inject malicious scripts into Yii2 Gii fields, leading to stored XSS and potential code execution in the browser context.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-34297?
CVE-2022-34297 is a medium-severity cross-site scripting vulnerability in n/a, published on 9 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Yii Yii2 Gii through 2.2.4 allows stored XSS by injecting a payload into any field.
Weakness: CWE-79
Which versions are affected by CVE-2022-34297?
2 open source packages ship an affected version, including yiisoft/yii2-gii. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
yiisoft/yii2-gii Packagist | All versions to 2.2.4 | None |
yiisoft/yii2-gii Packagist | All versions to 2.2.4 | None |
Products include Yiiframework Gii.
How do I fix CVE-2022-34297?
No fix has been published for CVE-2022-34297 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-34297 being exploited?
There is no known exploitation of CVE-2022-34297 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-x87m-36g7-6mpw.