GHSA-x87m-36g7-6mpw
Dashboard / Vulnerabilities / GHSA-x87m-36g7-6mpw
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.
References: https://nvd.nist.gov/vuln/detail/CVE-2022-34297, https://gist.github.com/be4r/b5c48d97ef6726d3ee37f995ee5aac81, https://github.com/yiisoft/yii2-gii, https://www.yiiframework.com/doc/guide/2.0/en/start-gii
Affected packages
Package
Name: yiisoft/yii2-gii
Purl: pkg:composer/yiisoft/yii2-gii
Affected ranges
Type: ECOSYSTEM
Events:
