Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. zendframework/zend-navigation
  4. ›
  5. GHSA-6v7p-5qcq-268c

GHSA-6v7p-5qcq-268c: Zend-Navigation vulnerable to Cross-site Scripting

June 7, 2024

Many Zend Framework 2 view helpers were using the escapeHtml() view helper in order to escape HTML attributes, instead of the more appropriate escapeHtmlAttr(). In situations where user data and/or JavaScript is used to seed attributes, this can lead to potential cross site scripting (XSS) attack vectors.

Vulnerable view helpers include:

  • All Zend\Form view helpers.
  • Most Zend\Navigation (aka Zend\View\Helper\Navigation\*) view helpers.
  • All “HTML Element” view helpers: htmlFlash(), htmlPage(), htmlQuickTime().
  • Zend\View\Helper\Gravatar

References

  • framework.zend.com/security/advisory/ZF2014-03
  • github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-navigation/ZF2014-03.yaml
  • github.com/advisories/GHSA-6v7p-5qcq-268c
  • github.com/zendframework/zend-navigation

Code Behaviors & Features

Detect and mitigate GHSA-6v7p-5qcq-268c 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 2.0.0 before 2.2.7, all versions starting from 2.3.0 before 2.3.1

Fixed versions

  • 2.2.7
  • 2.3.1

Solution

Upgrade to versions 2.2.7, 2.3.1 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

packagist/zendframework/zend-navigation/GHSA-6v7p-5qcq-268c.yml

Spotted a mistake? Edit the file on GitLab.

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

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