GHSA-8q77-cv62-jj38: Zendframework has potential Cross-site Scripting vector in multiple view helpers
Many Zend Framework 2 view helpers were using the escapeHtml() view helper in order to escape HTML attributes, instead of the more appropriate escapeHtmlAttr(). In situations where user data and/or JavaScript is used to seed attributes, this can lead to potential cross site scripting (XSS) attack vectors. Vulnerable view helpers include: - All Zend\Form view helpers.
Published Jun 7, 2024
Affected packages
zendframework/zendframework
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.0.0, < 2.2.7
- Fixed in
- 2.2.7
- Check
composer show zendframework/zendframework
zendframework/zendframework
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.3.0, < 2.3.1
- Fixed in
- 2.3.1
- Check
composer show zendframework/zendframework
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Many Zend Framework 2 view helpers were using the escapeHtml() view helper in order to escape HTML attributes, instead of the more appropriate escapeHtmlAttr(). In situations where user data and/or JavaScript is used to seed attributes, this can lead to potential cross site scripting (XSS) attack vectors.
Vulnerable view helpers include:
- All
Zend\Formview helpers. - Most
Zend\Navigation(akaZend\View\Helper\Navigation\*) view helpers. - All "HTML Element" view helpers:
htmlFlash(),htmlPage(),htmlQuickTime(). Zend\View\Helper\Gravatar
References
- https://github.com/zendframework/zendframework/commit/1dd4f8cede07469390eef1e629f808349fa1b5ea
- https://github.com/zendframework/zendframework/commit/6742ddad7a7923163cea6dd58d27d0e946a402d1
- https://framework.zend.com/security/advisory/ZF2014-03
- https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2014-03.yaml
- https://github.com/advisories/GHSA-8q77-cv62-jj38
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesGHSA-2fhr-8r8r-qp56
ZendFramework Information Disclosure and Insufficient Entropy vulnerability
medium5.3Jun 7, 2024GHSA-5gmf-3c43-q73v
ZendFramework vulnerable to Cross-site Scripting
medium6.1Jun 7, 2024GHSA-62f6-h68r-3jpw
Zendframework session validation vulnerability
medium6.5Jun 7, 2024GHSA-fh7r-58q4-6387
Zendframework URL Rewrite vulnerability
medium4.7Jun 7, 2024GHSA-gff2-p6vm-3p8g
ZendFramework potential remote code execution in zend-mail via Sendmail adapter
medium6.5Jun 7, 2024GHSA-jq87-2wxp-8349
ZendFramework Route Parameter Injection Via Query String in `Zend\Mvc`
high7.5Jun 7, 2024
