GHSA-8q77-cv62-jj38 json
Zendframework has potential Cross-site Scripting vector in multiple view helpers
published 2y ago modified last yr.
- cvss
- 6.1
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
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`
Patch / fix
- packagist zendframework/zendframework 2.2.7, 2.3.1
Is GHSA-8q77-cv62-jj38 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | zendframework/zendframework | >=2.0.0, <2.2.7 >=2.3.0, <2.3.1 |
2.2.7 2.3.1 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/zendframework/zendframework/commit/1dd4f8cede07469390eef1e629f808349fa1b5ea
web
-
github.com
/zendframework/zendframework/commit/6742ddad7a7923163cea6dd58d27d0e946a402d1
web
-
framework.zend.com
/security/advisory/ZF2014-03
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/ZF2014-03.yaml
web
-
github.com
/zendframework/zendframework
package
Sources
- GitHub Advisory GHSA-8q77-cv62-jj38
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.