yiisoft/yii2-dev: is it safe?

Short answer: Every vulnerability listed here affects version 2.0.45 or earlier. Versions after 2.0.45 are not known to be affected.

Composer yiisoft/yii2-dev has 10 known advisories in the phpwarden feed. Feed 2026.11.23.2, updated 2026-11-23.

10advisories
1critical
0on CISA KEV
1no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2018-6010Remote attackers could obtain potentially sensitive information from exception messages printed by the error handler in non-debug mode.unknown0.0<2.0.142.0.14
CVE-2015-3397JSON Data encoded for use in HTML was not safe to use in IE6/IE7, possible XSS attacksunknown0.0<2.0.42.0.4
CVE-2018-7269Yii SQL injection vulnerabilitycritical9.8<2.0.12.1 or >=2.0.13 and <2.0.13.2 or >=2.0.14 and <2.0.152.0.12.1, 2.0.13.2, 2.0.15
CVE-2021-3689Use of Insufficiently Random Values in yiisoft/yii2-devhigh7.5<2.0.432.0.43
CVE-2021-3692Use of Cryptographically Weak Pseudo-Random Number Generator in yiisoft/yii2-devmedium5.3<2.0.432.0.43
CVE-2018-8074Yii Framework Code Injectionhigh8.1>=2.0.0 and <2.0.152.0.15
CVE-2015-5467class yii\web\ViewAction allowed to include arbitrary files that end with .phpunknown0.0<2.0.52.0.5
CVE-2017-11516Yii Cross-site Scripting Framework vulnerabilitymedium6.1>=2.0.12 and <2.0.132.0.13
CVE-2025-2689yiisoft Yii2 Deserialization of Untrusted Datamedium6.3<=2.0.45–
CVE-2018-6009Yii Framework Cross-Site Request Forgery (CSRF)high8.8>=2.0 and <2.0.14 or <2.0.142.0.14

Quick answers

Is yiisoft/yii2-dev safe to use?

Every vulnerability listed here affects version 2.0.45 or earlier. Versions after 2.0.45 are not known to be affected.

Is yiisoft/yii2-dev being actively exploited?

None of its 10 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/yiisoft/yii2-dev.svg)](https://phpwarden.io/packages/yiisoft/yii2-dev)