CVE-2025-27088 Reflected Cross-site Scripting (XSS) in template implementation in oxyno-zeta/s3-proxy

High 8.4 Published Updated

Attackers can inject malicious scripts via crafted URLs in the folder-list template, leading to session hijacking or phishing on the trusted domain.

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 CVE-2025-27088?

CVE-2025-27088 is a high-severity cross-site scripting vulnerability in oxyno-zeta s3-proxy, published on 20 Feb 2025. 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

oxyno-zeta/s3-proxy is an aws s3 proxy written in go. In affected versions a Reflected Cross-site Scripting (XSS) vulnerability enables attackers to create malicious URLs that, when visited, inject scripts into the web application. This can lead to session hijacking or phishing attacks on a trusted domain, posing a moderate risk to all users. It's possible to inject html elements, including scripts through the folder-list template. The affected template allows users to interact with the URL path provided by the `Request.URL.Path` variable, which is then rendered directly into the HTML without proper sanitization or escaping. This can be abused by attackers who craft a malicious URL containing injected HTML or JavaScript. When users visit such a URL, the malicious script will be executed in the user's context. This issue has been addressed in version 4.18.1 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2025-27088?

3 open source packages ship an affected version, including github.com/oxyno-zeta/s3-proxy/cmd/s3-proxy and github.com/oxyno-zeta/s3-proxy. It affects 1 product.

PackageAffectedFixed in
github.com/oxyno-zeta/s3-proxy/cmd/s3-proxy GoAll versions0.0.0-20250220214310-c611c741ed48
github.com/oxyno-zeta/s3-proxy/cmd/s3-proxy GoAll versions0.0.0-20250220214310-c611c741ed48
github.com/oxyno-zeta/s3-proxy GoAll versions0.0.0-20250220214310-c611c741ed48

Products include Oxyno-Zeta S3-Proxy.

How do I fix CVE-2025-27088?

Upgrade github.com/oxyno-zeta/s3-proxy/cmd/s3-proxy to 0.0.0-20250220214310-c611c741ed48 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-2025-27088 being exploited?

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

Sources

Also known as GHSA-pp9m-qf39-hxjc, GO-2025-3477.

Is CVE-2025-27088 in your software?

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

Check your SBOMs for free