# GHSA-g52p-86j5-xr8q: ZendFramework Potential Cross-site Scripting in Development Environment Error View Script

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-06-07T21:20:39.000Z
- Modified: 2024-06-07T21:20:39.000Z
- Weaknesses: CWE-79

## Description

The default error handling view script generated using `Zend_Tool` failed to escape request parameters when run in the "development" configuration environment, providing a potential XSS attack vector.

`Zend_Tool_Project_Context_Zf_ViewScriptFile` was patched such that the view script template now calls the `escape()` method on dumped request variables.

Zend Framework 1.11.4 includes a patch that adds escaping to the generated error/error.phtml view script, ensuring that request variables are escaped appropriately for the browser.
Do note, however, that this will not update any previously generated code. You will still need to follow the next advice for previously generated error view scripts.

(As written by GitHub Advisory Database.)

## Affected

- zendframework/zendframework1 (Packagist): from 1.0.0 before 1.11.4

## References

- <https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2011-01.yaml> (web)
- <https://github.com/zendframework/zf1> (package)
- <https://web.archive.org/web/20210120123405/https://framework.zend.com/security/advisory/ZF2011-01> (web)

## Sources

- GitHub Advisory Database: [GHSA-g52p-86j5-xr8q](https://github.com/advisories/GHSA-g52p-86j5-xr8q), CC-BY-4.0, modified 2024-06-07

---

Page: https://cve.day/GHSA-g52p-86j5-xr8q · Whole record: https://cve.day/GHSA-g52p-86j5-xr8q.json · Rebuilt by cve.day 2026-11-25T22:56:32.112Z
