{"id":"GHSA-6v7p-5qcq-268c","aliases":["GHSA-6v7p-5qcq-268c"],"related":[],"kind":"vulnerability","state":"published","title":"Zend-Navigation 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-07T22:06:01.000Z","modified":"2024-12-04T05:41:22.936Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.2.7"}],"ecosystem":"Packagist","package":"zendframework/zend-navigation","purl":"pkg:composer/zendframework/zend-navigation","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"Packagist","package":"zendframework/zend-navigation","purl":"pkg:composer/zendframework/zend-navigation","source":"ghsa"}],"references":[{"url":"https://framework.zend.com/security/advisory/ZF2014-03","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-navigation/ZF2014-03.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zend-navigation","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6v7p-5qcq-268c","url":"https://github.com/advisories/GHSA-6v7p-5qcq-268c","licence":"CC-BY-4.0","modified":"2024-12-04T05:41:22.936Z"}],"updatedAt":"2026-11-25T22:56:31.369Z"}