CVE-2013-4941: YUI Uploader Component XSS Vulnerability

yui Updated 14 Dec 2025

Summary

13/05/2022
No i
Moderate
5.3

CVE-2013-4941: YUI Cross-site Scripting (XSS) vulnerability. Affects yui versions >= 3.2.0, <= 3.9.1. No fix is published. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Yahoo! YUI (Yahoo User Interface) is a popular JavaScript library used for building interactive web applications. The Uploader component allows users to upload files through a web interface. However, certain versions of this component, specifically from 3.2.0 to 3.9.1, are vulnerable to a Cross-site Scripting (XSS) attack, which can compromise the security of applications using this library.

Vulnerability Detail

The vulnerability arises from improper handling of user input in the uploader.swf file within the Uploader component of YUI. This flaw allows remote attackers to inject arbitrary web scripts or HTML via a crafted string in a URL. If exploited, this could lead to unauthorized actions being performed on behalf of the user, data theft, or the spread of malware.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can sanitize user inputs and URLs before processing them in your application to mitigate the risk of XSS attacks. However, this is not a substitute for updating the affected package.

Conclusion

The YUI Uploader component has a significant XSS vulnerability that can be exploited by attackers. It is crucial for developers using affected versions to update their packages promptly to safeguard their applications and users. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.

See every vulnerability recorded for yui →

Share this vulnerability

FAQ

XSS is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.

Exploiting this vulnerability can lead to unauthorized actions, data theft, or the spread of malware, compromising user security.

Yes, upgrading to a patched version of the YUI package or Moodle will resolve this vulnerability.

Implement input sanitization as a temporary measure to reduce the risk of XSS attacks until you can update the package.

Related vulnerabilities

Recent vulnerabilities recorded for yui.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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