Advisory

GHSA-8q77-cv62-jj38

Also known as: None

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-06-07 20:04 UTC
Modified
2024-12-04 05:44 UTC

Affected packages and fixes

zendframework/zendframework

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.2.7 (ecosystem)

Fixed versions

2.2.7

Fix

The export has no generic command for this ecosystem.

zendframework/zendframework

Packagist · All systems

Affected

  • introduced 2.3.0, fixed 2.3.1 (ecosystem)

Fixed versions

2.3.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences