{"id":"GHSA-gvpp-6jrj-5pqc","aliases":["GHSA-gvpp-6jrj-5pqc"],"related":[],"kind":"vulnerability","state":"published","title":"Zend-Form vulnerable to Cross-site Scripting","summary":"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.\n\nVulnerable view helpers include:\n\n- All `Zend\\Form` view helpers.\n- Most `Zend\\Navigation` (aka `Zend\\View\\Helper\\Navigation\\*`) view helpers.\n- All \"HTML Element\" view helpers: `htmlFlash()`, `htmlPage()`, `htmlQuickTime()`.\n- `Zend\\View\\Helper\\Gravatar`","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\nVulnerable view helpers include:\n\n- All `Zend\\Form` view helpers.\n- Most `Zend\\Navigation` (aka `Zend\\View\\Helper\\Navigation\\*`) view helpers.\n- All \"HTML Element\" view helpers: `htmlFlash()`, `htmlPage()`, `htmlQuickTime()`.\n- `Zend\\View\\Helper\\Gravatar`","format":"markdown","source":"ghsa"}],"published":"2024-06-07T21:58:34.000Z","modified":"2024-12-04T05:40:19.051Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.2.7"}],"ecosystem":"Packagist","package":"zendframework/zend-form","purl":"pkg:composer/zendframework/zend-form","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"Packagist","package":"zendframework/zend-form","purl":"pkg:composer/zendframework/zend-form","source":"ghsa"}],"references":[{"url":"https://github.com/zendframework/zend-form/commit/6fe40314e8e3477494aadd03d62573bd1c212bd1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zend-form/commit/d7a1f5bc4626b1df990391502a868b28c37ba65d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zend-form/commit/fd43a951460c4bc60c77a566129705f6bdb9c61b","tags":["web"],"sources":["ghsa"]},{"url":"https://framework.zend.com/security/advisory/ZF2014-03","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-form/ZF2014-03.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zend-form","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gvpp-6jrj-5pqc","url":"https://github.com/advisories/GHSA-gvpp-6jrj-5pqc","licence":"CC-BY-4.0","modified":"2024-12-04T05:40:19.051Z"}],"updatedAt":"2026-11-25T22:56:32.226Z"}