CVE-2018-6010: Yiisoft/yii2 Cross-Site Scripting Vulnerability
HIGHCVE-2018-6010 is a HIGH (CVSS 7.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Yiisoft/yii2 libraries in the Packagist ecosystem. The issue involves yii framework reflected cross-site scripting. Remediation is available by upgrading affected packages to version 2.0.14.
CVE-2018-6010 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2018-6010
To remediate this vulnerability, upgrade all affected Yiisoft/yii2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade yiisoft/yii2 to 2.0.14
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for yiisoft/yii2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-6010, inspect your project dependencies for Yiisoft/yii2:
inspect dependencies for yiisoft/yii2
Analyze the terminal output to locate any version of Yiisoft/yii2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.14), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Yiisoft/yii2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-6010 Affected Yiisoft/yii2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
yiisoft/yii2
|
Packagist |
≥ 2.0.0
< 2.0.14
|
2.0.14
|
References
Frequently Asked Questions
What is CVE-2018-6010?
Which Yiisoft/yii2 versions are affected?
What version fixes CVE-2018-6010?
Is yiisoft/yii2 affected?
What is the CVSS score of CVE-2018-6010?
What CWE is associated with CVE-2018-6010?
How can I check Packagist dependencies for CVE-2018-6010?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8gfq-c54m-3rf6",
"modified" : "2024-04-24T18:31:31Z",
"published" : "2022-05-13T01:20:23Z",
"aliases" : [ "CVE-2018-6010" ],
"summary" : "Yii Framework reflected Cross-site Scripting",
"details" : "In Yii Framework 2.x before 2.0.14, remote attackers could obtain potentially sensitive information from exception messages, or exploit reflected XSS on the error handler page in non-debug mode. Related to base/ErrorHandler.php, log/Dispatcher.php, and views/errorHandler/exception.php.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "yiisoft/yii2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.14"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-6010"
}, {
"type" : "WEB",
"url" : "https://github.com/yiisoft/yii2/issues/14711"
}, {
"type" : "WEB",
"url" : "https://github.com/yiisoft/yii2/pull/15534"
}, {
"type" : "WEB",
"url" : "https://github.com/yiisoft/yii2/commit/6b0be47e0fa9c532e03b07b4369050582fcf5c7a"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6010.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/yiisoft/yii2-framework"
}, {
"type" : "WEB",
"url" : "https://www.yiiframework.com/news/165/yii-2-0-14-is-released"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-24T18:31:31Z",
"nvd_published_at" : "2018-01-22T22:29:00Z"
}
}