Vulnerability · Published Feb 20, 2025 · Assigned by GitHub_M

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

High 8.4

In plain English

A high-severity cross-site scripting in s3-proxy from oxyno-zeta. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.4High
Exploit odds (30 days)0.5%top 57.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/oxyno-zeta/s3-proxy0.0.0-20250220214310-c611c741ed48GO-2025-3477
Gogithub.com/oxyno-zeta/s3-proxy/cmd/s3-proxy0.0.0-20250220214310-c611c741ed48GHSA-pp9m-qf39-hxjc

Affected products (as reported)

VendorProductVersions
oxyno-zeta s3-proxy < 4.18.0

Weakness: CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N

References