CVE-2023-1496 Cross-site Scripting (XSS) - Reflected in imgproxy/imgproxy
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/imgproxy/imgproxy/v3 Go | All versions | 3.14.0 |
github.com/imgproxy/imgproxy/v3 Go | All versions | 3.14.0 |
github.com/imgproxy/imgproxy/v3 Go | All versions | 3.14.0 |
github.com/imgproxy/imgproxy Go | All versions | None |
github.com/imgproxy/imgproxy/v2 Go | All versions | None |
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.
Other vulnerabilities in imgproxy/imgproxy
Sources
Also known as GHSA-ch9g-x9j7-rcgp, GO-2023-1651.