VDB
Sign up
MEDIUM6.1

GHSA-5gmf-3c43-q73v

ZendFramework vulnerable to Cross-site Scripting

Quick fix

GHSA-5gmf-3c43-q73v — zendframework/zendframework: upgrade to the fixed version with the command below.

composer require zendframework/zendframework:^2.0.1

Details

`Zend\Debug`, `Zend\Feed\PubSubHubbub`, `Zend\Log\Formatter\Xml`, `Zend\Tag\Cloud\Decorator`, `Zend\Uri`, `Zend\View\Helper\HeadStyle, Zend\View\Helper\Navigation\Sitemap`, and `Zend\View\Helper\Placeholder\Container\AbstractStandalone` were not using `Zend\Escaper` when escaping HTML, HTML attributes, and/or URLs. While most were performing some escaping, because they were not using context-appropriate escaping mechanisms, they could potentially be exploited to perform Cross Site Scripting (XSS) attacks.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/zendframework/zendframework
Introduced in: 2.0.0Fixed in: 2.0.1
Fixcomposer require zendframework/zendframework:^2.0.1

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/zendframework/zendframework"]}'