# GHSA-6v7p-5qcq-268c: Zend-Navigation vulnerable to Cross-site Scripting

- Severity: High 7.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-06-07T22:06:01.000Z
- Modified: 2024-12-04T05:41:22.936Z
- Weaknesses: CWE-352

## 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\Form` view helpers.
- Most `Zend\Navigation` (aka `Zend\View\Helper\Navigation\*`) view helpers.
- All "HTML Element" view helpers: `htmlFlash()`, `htmlPage()`, `htmlQuickTime()`.
- `Zend\View\Helper\Gravatar`

(As written by GitHub Advisory Database.)

## Affected

- zendframework/zend-navigation (Packagist): from 2.0.0 before 2.2.7; from 2.3.0 before 2.3.1

## References

- <https://framework.zend.com/security/advisory/ZF2014-03> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-navigation/ZF2014-03.yaml> (web)
- <https://github.com/zendframework/zend-navigation> (package)

## Sources

- GitHub Advisory Database: [GHSA-6v7p-5qcq-268c](https://github.com/advisories/GHSA-6v7p-5qcq-268c), CC-BY-4.0, modified 2024-12-04

---

Page: https://cve.day/GHSA-6v7p-5qcq-268c · Whole record: https://cve.day/GHSA-6v7p-5qcq-268c.json · Rebuilt by cve.day 2026-11-25T22:56:31.369Z
