CVE-2021-33496: Cross-site scripting in Dutchcoders transfer.sh

Summary

21/08/2024
Yes i
Moderate
6.1

CVE-2021-33496: Cross-site scripting in Dutchcoders transfer.sh in github.com/dutchcoders/transfer.sh. Affects github.com/dutchcoders/transfer.sh versions < 1.2.4. Fixed in 1.2.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Dutchcoders transfer.sh is an open-source file sharing service written in Go. It allows users to upload and share files through a simple command-line interface. The service is widely used for its simplicity and ease of deployment. However, a vulnerability has been discovered in the transfer.sh codebase that allows for cross-site scripting (XSS) attacks.

Vulnerability Detail

The cross-site scripting vulnerability in Dutchcoders transfer.sh allows an attacker to inject malicious code into the web application, which is then executed by the victim's browser. This can lead to various security risks, such as session hijacking, data theft, or the spread of malware. The vulnerability originates from improper input sanitization in the application's code, allowing user-supplied data to be rendered as HTML without proper validation.

How To Fix

Latest published version: v1.6.1 as of 23 Oct 2026

go get github.com/dutchcoders/transfer.sh@v1.6.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.2.4

This is the first release that contains the fix.

go get github.com/dutchcoders/transfer.sh@v1.2.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can disable the transfer.sh service or restrict access to trusted users only. Additionally, implementing a web application firewall (WAF) can help mitigate the risk of XSS attacks by blocking malicious input.

Conclusion

The cross-site scripting vulnerability in Dutchcoders transfer.sh poses a significant risk to users of the file sharing service. It is crucial for developers to update to version 1.2.4 or later to mitigate the vulnerability. Implementing additional security measures, such as a web application firewall, can provide further protection against XSS attacks.

See every vulnerability recorded for github.com/dutchcoders/transfer.sh →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary code in the context of the victim's browser, potentially leading to session hijacking, data theft, or the spread of malware.

No, versions prior to 1.2.4 are affected. It is recommended to update to version 1.2.4 or later to mitigate the vulnerability.

There is no evidence of active exploits at the moment. However, it is crucial to patch the vulnerability as soon as possible to prevent potential attacks.

Yes, implementing a WAF can help mitigate the risk of XSS attacks by blocking malicious input. However, it is still recommended to update to the latest version of transfer.sh to address the root cause of the vulnerability.

You can find more information about the vulnerability in the official vulnerability report at https://pkg.go.dev/vuln/GO-2022-0924.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/dutchcoders/transfer.sh.

How To Fix

Latest published version: v1.6.1 as of 23 Oct 2026

go get github.com/dutchcoders/transfer.sh@v1.6.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.2.4

This is the first release that contains the fix.

go get github.com/dutchcoders/transfer.sh@v1.2.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback