GHSA-5gmf-3c43-q73v ZendFramework vulnerable to Cross-site Scripting

Not scored Published

Insufficient escaping in Zend Framework components allows attackers to execute Cross-Site Scripting attacks against users.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-5gmf-3c43-q73v?

GHSA-5gmf-3c43-q73v is a cross-site scripting vulnerability in zendframework/zendframework, published on 7 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Which versions are affected by GHSA-5gmf-3c43-q73v?

2 open source packages ship an affected version, including zendframework/zendframework.

PackageAffectedFixed in
zendframework/zendframework PackagistFrom 2.0.02.0.1
zendframework/zendframework PackagistFrom 2.0.02.0.1

How do I fix GHSA-5gmf-3c43-q73v?

Upgrade zendframework/zendframework to 2.0.1 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is GHSA-5gmf-3c43-q73v being exploited?

There is no known exploitation of GHSA-5gmf-3c43-q73v in the wild and no public exploit code.

Sources

Is GHSA-5gmf-3c43-q73v in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free