GHSA-gvpp-6jrj-5pqc
6.1medium
Zend-Form vulnerable to Cross-site Scripting
- Severity
- 6.1medium CVSS:3.1 by GitHub
- Published
- Last changed
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zendframework/zend-form (Packagist) | from 2.0.0 before 2.2.7, from 2.3.0 before 2.3.1 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-gvpp-6jrj-5pqc changed 2024-12-04 | CC-BY-4.0 |