Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. zendframework/zendframework1
  4. ›
  5. GHSA-4vf6-mq7w-3hp6

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

June 7, 2024

Zend_Filter_StripTags contained an optional setting to allow allowlisting 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 allowlisting of HTML comments, a malicious user could potentially include XSS exploits within HTML comments that would then be rendered in the final output.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2010-03.yaml
  • github.com/advisories/GHSA-4vf6-mq7w-3hp6
  • github.com/zendframework/zf1
  • web.archive.org/web/20210411020019/https://framework.zend.com/security/advisory/ZF2010-03

Code Behaviors & Features

Detect and mitigate GHSA-4vf6-mq7w-3hp6 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.7.0 before 1.7.9, all versions starting from 1.8.0 before 1.8.5, all versions starting from 1.9.0 before 1.9.7

Fixed versions

  • 1.7.9
  • 1.8.5
  • 1.9.7

Solution

Upgrade to versions 1.7.9, 1.8.5, 1.9.7 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/zendframework/zendframework1/GHSA-4vf6-mq7w-3hp6.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.