GHSA-gvpp-6jrj-5pqc

Suggest an improvement
Source
https://github.com/advisories/GHSA-gvpp-6jrj-5pqc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-gvpp-6jrj-5pqc/GHSA-gvpp-6jrj-5pqc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gvpp-6jrj-5pqc
Published
2024-06-07T21:58:34Z
Modified
2024-12-04T05:40:19.051789Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Zend-Form vulnerable to Cross-site Scripting
Details

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
Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-07T21:58:34Z"
}
References

Affected packages

Packagist / zendframework/zend-form

Package

Name
zendframework/zend-form
Purl
pkg:composer/zendframework/zend-form

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.2.7

Affected versions

2.*

2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.8
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6
2.2.0rc1
2.2.0rc2
2.2.0rc3
2.2.0
2.2.1
2.2.2
2.2.3
2.2.4
2.2.5
2.2.6

Packagist / zendframework/zend-form

Package

Name
zendframework/zend-form
Purl
pkg:composer/zendframework/zend-form

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.3.0
Fixed
2.3.1

Affected versions

2.*

2.3.0