GHSA-5gmf-3c43-q73v: Zendframework/zendframework Cross-Site Scripting Vulnerability
MODERATEGHSA-5gmf-3c43-q73v is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Zendframework/zendframework libraries in the Packagist ecosystem. The issue involves zendframework vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 2.0.1.
GHSA-5gmf-3c43-q73v at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix GHSA-5gmf-3c43-q73v
To remediate this vulnerability, upgrade all affected Zendframework/zendframework 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 zendframework/zendframework to 2.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for zendframework/zendframework
How to Check if You Are Affected
To determine whether your application is affected by GHSA-5gmf-3c43-q73v, inspect your project dependencies for Zendframework/zendframework:
inspect dependencies for zendframework/zendframework
Analyze the terminal output to locate any version of Zendframework/zendframework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.1), 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 Zendframework/zendframework, 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-5gmf-3c43-q73v Affected Zendframework/zendframework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zendframework/zendframework
|
Packagist |
≥ 2.0.0
< 2.0.1
|
2.0.1
|
References
Frequently Asked Questions
What is GHSA-5gmf-3c43-q73v?
Which Zendframework/zendframework versions are affected?
What version fixes GHSA-5gmf-3c43-q73v?
Is zendframework/zendframework affected?
What is the CVSS score of GHSA-5gmf-3c43-q73v?
What CWE is associated with GHSA-5gmf-3c43-q73v?
How can I check Packagist dependencies for GHSA-5gmf-3c43-q73v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5gmf-3c43-q73v",
"modified" : "2024-06-07T20:50:55Z",
"published" : "2024-06-07T20:50:55Z",
"aliases" : [ ],
"summary" : "ZendFramework vulnerable to Cross-site Scripting",
"details" : "`Zend\\Debug`, `Zend\\Feed\\PubSubHubbub`, `Zend\\Log\\Formatter\\Xml`, `Zend\\Tag\\Cloud\\Decorator`, `Zend\\Uri`, `Zend\\View\\Helper\\HeadStyle, Zend\\View\\Helper\\Navigation\\Sitemap`, and `Zend\\View\\Helper\\Placeholder\\Container\\AbstractStandalone` were not using `Zend\\Escaper` when escaping HTML, HTML attributes, and/or URLs. While most were performing some escaping, because they were not using context-appropriate escaping mechanisms, they could potentially be exploited to perform Cross Site Scripting (XSS) attacks.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "zendframework/zendframework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/07d847b705911da6a15257f64895f69cab7ad50c"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/0a78cb2b633a618ac514eadef2c19ef78b1e12f2"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/27131ca9520bdf1d4c774c71459eba32f2b10733"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/6791343f8c8cd1948315a87eb15e16b57e08bc71"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/6f57175753a238388b4811b9b0786b6d5866a208"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/7f48d9edf82bcd7ece9d189d836682be83d08e91"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/a36406ddea52fd294b291310be00c526df6b713a"
}, {
"type" : "WEB",
"url" : "https://github.com/zendframework/zendframework/commit/ad3628bc2c05c297af4492330885d49f373e1e91"
}, {
"type" : "WEB",
"url" : "https://framework.zend.com/security/advisory/ZF2012-03"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2012-03.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zendframework/zendframework"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-07T20:50:55Z",
"nvd_published_at" : null
}
}