# ZendFramework has potential Cross-site Scripting vector in multiple view helpers

Advisory record · `GHSA-m7hr-j867-3f34`

- **Identifiers:** `GHSA-m7hr-j867-3f34` · `PKSA-12rk-phcc-1zyt`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 7 Jun 2024
- **Updated:** 4 Dec 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 7 Jun 2024, 20:58 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `zendframework/zend-view` (Packagist): affected `>=2.0.0, <2.2.7 || >=2.3.0, <2.3.1`; fixed in `2.2.7`, `2.3.1`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Zend Framework's zend-view package, versions 2.0.0 before 2.2.7 and 2.3.0 before 2.3.1, is vulnerable to cross-site scripting. Several view helpers, including the Form, Navigation, HTML Element and Gravatar helpers, escape HTML attributes with the HTML-escaping helper instead of the attribute-escaping one. An attacker who can supply data or JavaScript that seeds these attributes could inject script into pages. Upgrade to zend-view 2.2.7 or 2.3.1.

Written 4 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.1 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 31 Oct 2026, 14:28 UTC: First seen by agentprime
- 31 Oct 2026, 14:28 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-m7hr-j867-3f34)

## Sources

- [GitHub Advisory Database: GHSA-m7hr-j867-3f34](https://github.com/advisories/GHSA-m7hr-j867-3f34)
- [OSV: GHSA-m7hr-j867-3f34](https://osv.dev/vulnerability/GHSA-m7hr-j867-3f34)
- <https://github.com/zendframework/zendframework/commit/12f89b587cd23dd781cde25c9dd2da75d8f829d7>
- <https://github.com/zendframework/zendframework/commit/1dd4f8cede07469390eef1e629f808349fa1b5ea>
- <https://github.com/zendframework/zendframework/commit/6742ddad7a7923163cea6dd58d27d0e946a402d1>
- <https://github.com/zendframework/zendframework/commit/ec6c0468514c111a244552cfb7cf575a726e017e>
- <https://framework.zend.com/security/advisory/ZF2014-03>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-view/ZF2014-03.yaml>
- <https://github.com/zendframework/zend-view>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-m7hr-j867-3f34>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-m7hr-j867-3f34/>. Everything for agents: <https://agentprime.io/llms.txt>.
