CVE-2013-4942: YUI Cross-site Scripting (XSS) Vulnerability in Moodle and YUI

yui Updated 14 Dec 2025

Summary

13/05/2022
No i
Moderate
5.3

CVE-2013-4942: 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Yahoo! YUI (Yahoo User Interface Library) is a set of utilities and controls for building richly interactive web applications. The library provides a variety of components, including the Uploader component, which allows users to upload files. This library has been integrated into various platforms, including Moodle, a widely-used open-source learning management system. The vulnerability in question affects versions of YUI from 3.5.0 to 3.9.1 and specific versions of Moodle, making it susceptible to cross-site scripting attacks.

Vulnerability Detail

The vulnerability arises from a cross-site scripting (XSS) flaw in the flashuploader.swf file within the Uploader component of YUI. This flaw allows remote attackers to inject arbitrary web scripts or HTML into web pages viewed by users. The issue is particularly concerning as it can lead to unauthorized actions being performed on behalf of users, potentially compromising sensitive information and user accounts.

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

If immediate updating is not possible, consider disabling the Uploader component or restricting access to it until a patch can be applied. Additionally, implement Content Security Policy (CSP) headers to mitigate the risk of XSS attacks.

Conclusion

The CVE-2013-4942 vulnerability in YUI and Moodle poses a significant risk due to its potential for cross-site scripting attacks. Updating to the latest versions of the affected packages is crucial for maintaining security. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for yui →

Share this vulnerability

FAQ

The vulnerability is a cross-site scripting (XSS) flaw that allows attackers to inject malicious scripts into web pages.

YUI versions from 3.5.0 to 3.9.1 are affected by this vulnerability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

If exploited, this vulnerability can lead to unauthorized actions on behalf of users, data theft, and compromised user accounts.

Yes, you can implement Content Security Policy (CSP) headers and disable the Uploader component as a temporary measure.

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