GHSA-m7hr-j867-3f34
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\Formview helpers. - Most
Zend\Navigation(akaZend\View\Helper\Navigation\*) view helpers. - All "HTML Element" view helpers:
htmlFlash(),htmlPage(),htmlQuickTime(). Zend\View\Helper\Gravatar
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
What each source reports
GitHub Advisories Score used 6.1
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\Formview helpers. - Most
Zend\Navigation(akaZend\View\Helper\Navigation\*) view helpers. - All "HTML Element" view helpers:
htmlFlash(),htmlPage(),htmlQuickTime(). Zend\View\Helper\Gravatar
- Record
GHSA-m7hr-j867-3f34- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV 6.1
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\Formview helpers. - Most
Zend\Navigation(akaZend\View\Helper\Navigation\*) view helpers. - All "HTML Element" view helpers:
htmlFlash(),htmlPage(),htmlQuickTime(). Zend\View\Helper\Gravatar
- Record
GHSA-m7hr-j867-3f34- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVCLSA-2026-1789384773No score
TuxCare security update for zendframework/zend-view (1 CVE)
TuxCare rebuilt zendframework/zend-view to address 1 CVE. Fixed in 2.1.6-p1+tuxcare.
- Record
CLSA-2026-1789384773- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
zendframework/zend-viewPackagist | 2.0.0 up to 2.2.7 | 2.2.7 |
zendframework/zend-viewPackagist | 2.3.0 up to 2.3.1 | 2.3.1 |
zendframework/zend-viewTuxCare:Packagist | 2.1.6 up to 2.1.6-p1+tuxcare | 2.1.6-p1+tuxcare |
zendframework/zend-viewPackagist | 2.0.0 up to 2.2.7, plus listed versions 2.0.32.0.42.0.52.0.62.0.7 Show 18 moreShow less2.0.82.1.02.1.12.1.22.1.32.1.42.1.52.1.62.2.02.2.0rc12.2.0rc22.2.0rc32.2.12.2.22.2.32.2.42.2.52.2.6 | 2.2.7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
GHSA-m7hr-j867-3f34 is a medium vulnerability (CVSS 6.1) in zendframework/zend-view, published June 7, 2024. No source lists public exploit code. Fixed in zendframework/zend-view 2.2.7.
References
github.com/zendframework/zendframework/commit/12f89b587cd23dd781cde25c9dd2da75d8f829d7
github.com/zendframework/zendframework/commit/1dd4f8cede07469390eef1e629f808349fa1b5ea
github.com/zendframework/zendframework/commit/6742ddad7a7923163cea6dd58d27d0e946a402d1
github.com/zendframework/zendframework/commit/ec6c0468514c111a244552cfb7cf575a726e017e
framework.zend.com/security/advisory/ZF2014-03
github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-view/ZF2014-03.yaml
github.com/advisories/GHSA-m7hr-j867-3f34
github.com/zendframework/zend-view