CVE-2022-34297: XSS

Published Dec 9, 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.

Other sources

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

Affected Software

2 affected components
Yiiframework Gii Yii2<=2.2.4
composer/yiisoft/yii2-gii<=2.2.4

Event History

Dec 9, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Dec 10, 2022
Advisory Published
via GitHub·12:30 AM
Data Sourced
via GitHub·12:30 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

How severe is CVE-2022-34297?

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

3

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.

4

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

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

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203