VDB
Sign up
MEDIUM5.4

GHSA-x87m-36g7-6mpw

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/yiisoft/yii2-gii
Introduced in: 0

No fixed version published yet for yiisoft/yii2-gii (composer). Pin to a known-safe version or switch to an alternative.

References