# GHSA-4vf6-mq7w-3hp6: Zend_Filter_StripTags vulnerable to Cross-site Scripting when comments allowed

- 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-07T22:09:17.000Z
- Modified: 2024-06-07T22:09:17.000Z
- Weaknesses: CWE-79

## Description

Zend_Filter_StripTags contained an optional setting to allow whitelisting HTML comments in filtered text. Microsoft Internet Explorer and several other browsers allow developers to create conditional functionality via HTML comments, including execution of script events and rendering of additional commented markup. By allowing whitelisting of HTML comments, a malicious user could potentially include XSS exploits within HTML comments that would then be rendered in the final output.

(As written by GitHub Advisory Database.)

## Affected

- zendframework/zendframework1 (Packagist): from 1.7.0 before 1.7.9; from 1.8.0 before 1.8.5; from 1.9.0 before 1.9.7

## References

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

## Sources

- GitHub Advisory Database: [GHSA-4vf6-mq7w-3hp6](https://github.com/advisories/GHSA-4vf6-mq7w-3hp6), CC-BY-4.0, modified 2024-06-07

---

Page: https://cve.day/GHSA-4vf6-mq7w-3hp6 · Whole record: https://cve.day/GHSA-4vf6-mq7w-3hp6.json · Rebuilt by cve.day 2026-11-25T22:56:31.089Z
