Medium

Yii Cross-site Scripting Framework vulnerability

  • Disclosed: 17.05.2022
  • Updated: 11.10.2026 10:22

An XSS vulnerability exists in framework/views/errorHandler/exception.php in Yii Framework 2.0.12 affecting the exception screen when debug mode is enabled, because $exception->errorInfo is mishandled.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package yiisoft/yii2 >= 2.0.12, < 2.0.13 2.0.13
Composer package yiisoft/yii2-dev >= 2.0.12, < 2.0.13 2.0.13

References

CVSS score 6.1/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Composer
Package
yiisoft/yii2, yiisoft/yii2-dev
Disclosed
17.05.2022
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-4c64-w8fg-xcq2 - CC BY 4.0

Vulnerability history: yiisoft/yii2

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (12) in the archive
Total entries
12
First → latest
09.2020 05.2026
Without a fix
0
Exploited in attacks
1

Severity breakdown

  • Critical 2
  • High 5
  • Medium 5

Disclosures per year

  1. 2020: 1
  2. 2021: 0
  3. 2022: 6
  4. 2023: 1
  5. 2024: 2
  6. 2025: 1
  7. 2026: 1
Severity:
  1. High · 7.4 CVE-2026-39850 < 2.0.55 2.0.55
  2. Critical · 9.0 Exploited in attacks CVE-2024-58136 < 2.0.52 2.0.52
  3. High · 8.1 CVE-2024-4990 < 2.0.49.4 2.0.49.4
  4. Yii Cross-site Scripting Framework vulnerability this entry
    Medium · 6.1 CVE-2017-11516 >= 2.0.12, < 2.0.13 2.0.13
  5. High · 8.8 CVE-2018-6009 >= 2.0, < 2.0.14 2.0.14
  6. High · 7.5 CVE-2018-6010 >= 2.0.0, < 2.0.14 2.0.14
  7. High · 8.9 CVE-2020-15148 < 2.0.38 2.0.38

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.