GHSA-6v7p-5qcq-268c

Suggest an improvement
Source
https://github.com/advisories/GHSA-6v7p-5qcq-268c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-6v7p-5qcq-268c/GHSA-6v7p-5qcq-268c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6v7p-5qcq-268c
Published
2024-06-07T22:06:01Z
Modified
2024-12-04T05:41:22.936608Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Zend-Navigation 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-352"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-07T22:06:01Z"
}
References

Affected packages

Packagist / zendframework/zend-navigation

Package

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

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

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.3.0
Fixed
2.3.1

Affected versions

2.*

2.3.0