CWE
79
Advisory Published
Advisory Published
Updated

CVE-2022-34297: XSS

First published: Fri Dec 09 2022(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Yii Framework Gii<=2.2.4
composer/yiisoft/yii2-gii<=2.2.4

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-34297?

    CVE-2022-34297 is a vulnerability in Yii Yii2 Gii through 2.2.4 that allows stored XSS by injecting a payload into any field.

  • How severe is CVE-2022-34297?

    CVE-2022-34297 has a severity rating of medium with a value of 5.4.

  • Which software versions are affected by CVE-2022-34297?

    The affected software version for CVE-2022-34297 is Yii Yii2 Gii up to and including version 2.2.4.

  • What is the Common Weakness Enumeration (CWE) ID for CVE-2022-34297?

    The CWE ID for CVE-2022-34297 is CWE-79.

  • How can I fix CVE-2022-34297?

    To fix CVE-2022-34297, update Yii Yii2 Gii to version 2.2.5 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203