GHSA-gvpp-6jrj-5pqc
Zend-Form vulnerable to Cross-site Scripting
GHSA-gvpp-6jrj-5pqc is a medium vulnerability (CVSS 6.1) in zendframework/zend-form, published June 7, 2024. No source lists public exploit code. Fixed in zendframework/zend-form 2.2.7.
- Severity
- 6.1 MediumCVSS 3.1, GitHub Advisories
- Exploit chance
- UnscoredNo EPSS score yet
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
2.2.7zendframework/zend-form +3 more
Description
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
Affected packages
| Package | Affected | Fixed |
|---|---|---|
zendframework/zend-formPackagist | 2.0.0 up to 2.2.7 | 2.2.7 |
zendframework/zend-formPackagist | 2.3.0 up to 2.3.1 | 2.3.1 |
zendframework/zend-formTuxCare:Packagist | 2.1.6 up to 2.1.6-p1+tuxcare | 2.1.6-p1+tuxcare |
zendframework/zend-formPackagist | 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 |
What each source reports
GitHub Advisories Score used 6.1
Zend-Form vulnerable to Cross-site Scripting
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-gvpp-6jrj-5pqc- 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
Zend-Form vulnerable to Cross-site Scripting
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-gvpp-6jrj-5pqc- 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-1789457016No score
TuxCare security update for zendframework/zend-form (1 CVE)
TuxCare rebuilt zendframework/zend-form to address 1 CVE. Fixed in 2.1.6-p1+tuxcare.
- Record
CLSA-2026-1789457016- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
github.com/zendframework/zend-form/commit/6fe40314e8e3477494aadd03d62573bd1c212bd1
github.com/zendframework/zend-form/commit/d7a1f5bc4626b1df990391502a868b28c37ba65d
github.com/zendframework/zend-form/commit/fd43a951460c4bc60c77a566129705f6bdb9c61b
framework.zend.com/security/advisory/ZF2014-03
github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-form/ZF2014-03.yaml
github.com/advisories/GHSA-gvpp-6jrj-5pqc
github.com/zendframework/zend-form