GHSA-x87m-36g7-6mpw

    Dashboard / Vulnerabilities / GHSA-x87m-36g7-6mpw

    GHSA-x87m-36g7-6mpw

    Published: 10 Dec 2022Last Modified: 23 Apr 2025

    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.

    Affected packages

    Package

    Name: yiisoft/yii2-gii

    Purl: pkg:composer/yiisoft/yii2-gii

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    2.0.0
    2.0.0-alpha
    2.0.0-beta
    2.0.0-rc
    2.0.1
    2.0.2
    2.0.3
    2.0.4
    2.0.5
    2.0.6
    2.0.7
    2.0.8

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-x87m-36g7-6mpw | CVE-DB