GHSA-m7hr-j867-3f34

Suggest an improvement
Source
https://github.com/advisories/GHSA-m7hr-j867-3f34
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-m7hr-j867-3f34/GHSA-m7hr-j867-3f34.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m7hr-j867-3f34
Published
2024-06-07T20:58:08Z
Modified
2024-12-04T05:28:39.938286Z
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
ZendFramework has potential Cross-site Scripting vector in multiple view helpers
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-07T20:58:08Z"
}
References

Affected packages

Packagist / zendframework/zend-view

Package

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

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-view

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.3.0
Fixed
2.3.1

Affected versions

2.*

2.3.0