GHSA-4v57-pwvf-x35j Zendframework potential Cross-site Scripting vector in `Zend_Service_ReCaptcha_MailHide`

Not scored Published

An attacker can inject malicious scripts via the email argument in Zend_Service_ReCaptcha_MailHide due to improper encoding, affecting users viewing the CAPTCHA.

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-4v57-pwvf-x35j?

GHSA-4v57-pwvf-x35j 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_Service_ReCaptcha_MailHide had a potential XSS vulnerability. Due to the fact that the email address was never validated, and because its use of htmlentities() did not include the encoding argument, it was potentially possible for a malicious user aware of the issue to inject a specially crafted multibyte string as an attack via the CAPTCHA's email argument

Which versions are affected by GHSA-4v57-pwvf-x35j?

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-4v57-pwvf-x35j?

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-4v57-pwvf-x35j being exploited?

There is no known exploitation of GHSA-4v57-pwvf-x35j in the wild and no public exploit code.

Sources

Is GHSA-4v57-pwvf-x35j in your software?

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

Check your SBOMs for free