GHSA-gvpp-6jrj-5pqc
JSON

6.1medium

Zend-Form vulnerable to Cross-site Scripting

Severity
6.1medium CVSS:3.1 by GitHub
Published
Last changed

Description

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

Affected

Product or packageVersionsReported by
zendframework/zend-form (Packagist)from 2.0.0 before 2.2.7, from 2.3.0 before 2.3.1GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-gvpp-6jrj-5pqc changed 2024-12-04CC-BY-4.0