GHSA-vvm3-rv48-j3g5 Zendframework Potential XSS or HTML Injection vector in Zend_Json

Not scored Published

An attacker can inject malicious HTML or scripts via JSON responses due to improper encoding of the solidus character in Zend_Json.

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-vvm3-rv48-j3g5?

GHSA-vvm3-rv48-j3g5 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_Json_Encoder was not taking into account the solidus character (/) during encoding, leading to incompatibilities with the JSON specification, and opening the potential for XSS or HTML injection attacks when returning HTML within a JSON string.

Which versions are affected by GHSA-vvm3-rv48-j3g5?

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-vvm3-rv48-j3g5?

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-vvm3-rv48-j3g5 being exploited?

There is no known exploitation of GHSA-vvm3-rv48-j3g5 in the wild and no public exploit code.

Sources

Is GHSA-vvm3-rv48-j3g5 in your software?

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

Check your SBOMs for free