GHSA-4vf6-mq7w-3hp6 Zend_Filter_StripTags vulnerable to Cross-site Scripting when comments allowed

Not scored Published

Attackers can execute scripts via HTML comments in filtered text if comment whitelisting is enabled, affecting applications using Zend_Filter_StripTags.

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-4vf6-mq7w-3hp6?

GHSA-4vf6-mq7w-3hp6 is a cross-site scripting vulnerability in zendframework/zendframework1, 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_Filter_StripTags contained an optional setting to allow whitelisting HTML comments in filtered text. Microsoft Internet Explorer and several other browsers allow developers to create conditional functionality via HTML comments, including execution of script events and rendering of additional commented markup. By allowing whitelisting of HTML comments, a malicious user could potentially include XSS exploits within HTML comments that would then be rendered in the final output.

Which versions are affected by GHSA-4vf6-mq7w-3hp6?

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

PackageAffectedFixed in
zendframework/zendframework1 PackagistFrom 1.7.01.7.9
zendframework/zendframework1 PackagistFrom 1.7.01.7.9
zendframework/zendframework1 PackagistFrom 1.8.01.8.5
zendframework/zendframework1 PackagistFrom 1.8.01.8.5
zendframework/zendframework1 PackagistFrom 1.9.01.9.7
zendframework/zendframework1 PackagistFrom 1.9.01.9.7

How do I fix GHSA-4vf6-mq7w-3hp6?

Upgrade zendframework/zendframework1 to a fixed version for your release line: 1.7.9, 1.8.5 or 1.9.7.

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-4vf6-mq7w-3hp6 being exploited?

There is no known exploitation of GHSA-4vf6-mq7w-3hp6 in the wild and no public exploit code.

Sources

Is GHSA-4vf6-mq7w-3hp6 in your software?

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

Check your SBOMs for free