# GHSA-hg35-vqp3-fv39: ZendFramework potential Cross-site Scripting vectors due to inconsistent encodings

- 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:14:54.000Z
- Modified: 2024-06-07T21:14:54.000Z
- Weaknesses: CWE-79

## Description

A number of classes, primarily within the `Zend_Form`, `Zend_Filter`, `Zend_Form`, `Zend_Log` and `Zend_View components`, contained character encoding inconsistencies whereby calls to the `htmlspecialchars()` and htmlentities() functions used undefined or hard coded charset parameters. In many of these cases developers were unable to set a character encoding of their choice. These inconsistencies could, in specific circumstances, allow certain multibyte representations of special HTML characters pass through unescaped leaving applications potentially vulnerable to cross-site scripting (XSS) exploits. Such exploits would only be possible if a developer used a non-typical character encoding (such as UTF-7), allowed users to define the character encoding, or served HTML documents without a valid character set defined.

(As written by GitHub Advisory Database.)

## Affected

- zendframework/zendframework1 (Packagist): from 1.9.0 before 1.9.7

## References

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

## Sources

- GitHub Advisory Database: [GHSA-hg35-vqp3-fv39](https://github.com/advisories/GHSA-hg35-vqp3-fv39), CC-BY-4.0, modified 2024-06-07

---

Page: https://cve.day/GHSA-hg35-vqp3-fv39 · Whole record: https://cve.day/GHSA-hg35-vqp3-fv39.json · Rebuilt by cve.day 2026-11-25T22:56:32.295Z
