Advisory

GHSA-x87m-36g7-6mpw

Also known as: CVE-2022-34297

Summary

Yii2 Gii Cross-site Scripting vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-12-10 00:30 UTC
Modified
2025-04-23 15:40 UTC

Affected packages and fixes

yiisoft/yii2-gii

Packagist · All systems

Affected

  • introduced 0, last affected 2.2.4 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences