GHSA-xwhj-pqcg-8rcr: Cakephp/cakephp Cross-Site Scripting Vulnerability
MODERATEGHSA-xwhj-pqcg-8rcr is a MODERATE cross-site scripting vulnerability (General Security Weakness) affecting Cakephp/cakephp libraries in the Packagist ecosystem. The issue involves cakephp vulnerable to cross-site scripting in some development error pages. Remediation is available by upgrading affected packages to version 3.4.14, 3.5.17, 3.6.4.
GHSA-xwhj-pqcg-8rcr at a Glance
How to Fix GHSA-xwhj-pqcg-8rcr
To remediate this vulnerability, upgrade all affected Cakephp/cakephp 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 cakephp/cakephp to 3.4.14
Upgrade cakephp/cakephp to 3.5.17
Upgrade cakephp/cakephp to 3.6.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for cakephp/cakephp
How to Check if You Are Affected
To determine whether your application is affected by GHSA-xwhj-pqcg-8rcr, inspect your project dependencies for Cakephp/cakephp:
inspect dependencies for cakephp/cakephp
Analyze the terminal output to locate any version of Cakephp/cakephp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.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 General Security Weakness. In Cakephp/cakephp, 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
GHSA-xwhj-pqcg-8rcr Affected Cakephp/cakephp Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cakephp/cakephp
|
Packagist |
≥ 3.4.0
< 3.4.14
|
3.4.14
|
|
cakephp/cakephp
|
Packagist |
≥ 3.5.0
< 3.5.17
|
3.5.17
|
|
cakephp/cakephp
|
Packagist |
≥ 3.6.0
< 3.6.4
|
3.6.4
|
References
Frequently Asked Questions
What is GHSA-xwhj-pqcg-8rcr?
Which Cakephp/cakephp versions are affected?
What version fixes GHSA-xwhj-pqcg-8rcr?
Is cakephp/cakephp affected?
What CWE is associated with GHSA-xwhj-pqcg-8rcr?
How can I check Packagist dependencies for GHSA-xwhj-pqcg-8rcr?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xwhj-pqcg-8rcr",
"modified" : "2023-01-20T23:35:17Z",
"published" : "2023-01-20T23:35:17Z",
"aliases" : [ ],
"summary" : "CakePHP vulnerable to Cross-site Scripting in some development error pages",
"details" : "CakePHP 3.4 prior to 3.4.14, 3.5 prior to 3.5.17, and 3.6 prior to 3.6.4 contains a cross-site-scripting (XSS) vulnerability in the development only `missing route` and `duplicate named route` error pages.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.4.0"
}, {
"fixed" : "3.4.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.5.0"
}, {
"fixed" : "3.5.17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.6.0"
}, {
"fixed" : "3.6.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cakephp/cakephp/commit/1ea0c87de729e0dcd53eb6fe3bc86ba739121d8e"
}, {
"type" : "WEB",
"url" : "https://bakery.cakephp.org/2018/05/20/cakephp_364_3517_3414_released.html"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/cakephp/cakephp/2018-05-20.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cakephp/cakephp"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-20T23:35:17Z",
"nvd_published_at" : null
}
}