CVE-2023-1496 Cross-site Scripting (XSS) - Reflected in imgproxy/imgproxy

Medium 6.5 Published Updated

An attacker can execute arbitrary scripts in a victim's browser via reflected XSS in the imgproxy image proxy server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-1496?

CVE-2023-1496 is a medium-severity cross-site scripting vulnerability in imgproxy/imgproxy, published on 19 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Cross-site Scripting (XSS) - Reflected in GitHub repository imgproxy/imgproxy prior to 3.14.0.

Weakness: CWE-79

Which versions are affected by CVE-2023-1496?

5 open source packages ship an affected version, including github.com/imgproxy/imgproxy/v3, github.com/imgproxy/imgproxy and github.com/imgproxy/imgproxy/v2. It affects 1 product.

PackageAffectedFixed in
github.com/imgproxy/imgproxy/v3 GoAll versions3.14.0
github.com/imgproxy/imgproxy/v3 GoAll versions3.14.0
github.com/imgproxy/imgproxy/v3 GoAll versions3.14.0
github.com/imgproxy/imgproxy GoAll versionsNone
github.com/imgproxy/imgproxy/v2 GoAll versionsNone

Products include Evilmartians Imgproxy.

How do I fix CVE-2023-1496?

Upgrade github.com/imgproxy/imgproxy/v3 to 3.14.0 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 CVE-2023-1496 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-1496 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-ch9g-x9j7-rcgp, GO-2023-1651.

Is CVE-2023-1496 in your software?

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

Check your SBOMs for free