Cross-Site Scripting Vulnerability in WordPress Packages Due to KSES Filter Flaw

wordpress Updated 02 Oct 2025

Summary

28/06/2010
N/A
Yes i
Unrated
Not published

CVE-2010-2230: The KSES text cleaning filter in lib/weblib.php in Moodle before 1.8.13 and 1.9.x before 1.9.9 does not properly handle vbscript URIs, which allows remote authenticated users to conduct cross-site scripting (XSS) attacks... Affects wordpress versions < 3.0.4+dfsg-1. Fixed in 3.0.4+dfsg-1. 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

WordPress is a widely-used content management system (CMS) that allows users to create and manage websites easily. It is known for its flexibility, extensive plugin ecosystem, and user-friendly interface. However, certain versions of WordPress prior to 3.0.4+dfsg-1 contain a vulnerability in the KSES text cleaning filter, which is responsible for sanitizing HTML input. This flaw can lead to security risks, particularly cross-site scripting (XSS) attacks, when users input malicious scripts.

Vulnerability Detail

The KSES text cleaning filter in lib/weblib.php of Moodle versions before 1.8.13 and 1.9.x before 1.9.9 fails to properly handle vbscript URIs. This oversight allows remote authenticated users to inject malicious HTML input, leading to potential XSS attacks. The vulnerability can be exploited by attackers to execute arbitrary scripts in the context of the user's browser, compromising user data and session integrity.

How To Fix

Minimum fixed version

3.0.4+dfsg-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade wordpress

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 input of vbscript URIs in their HTML content. This can be done by sanitizing user input on the client-side or server-side before processing it. However, this is not a complete solution and should only be used until the software is updated.

Conclusion

The KSES filter vulnerability in WordPress poses significant security risks, allowing for potential XSS attacks. It is crucial for users to update their installations to the latest version to mitigate these risks. Temporary workarounds can help, but they are not substitutes for a proper update.

See every vulnerability recorded for wordpress →

Share this vulnerability

FAQ

The vulnerability allows attackers to execute arbitrary scripts in the user's browser, potentially leading to data theft, session hijacking, and other malicious activities.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

It is not safe to use an affected version, as it exposes your site to security risks. It is highly recommended to update to a fixed version as soon as possible.

If you cannot update immediately, implement input sanitization to prevent vbscript URIs from being processed, and monitor your site for any suspicious activity.

More information can be found in the CVE database, specifically CVE-2010-2230, and related advisories such as DSA-2115-1.

Related vulnerabilities

Recent vulnerabilities recorded for wordpress.

How To Fix

Minimum fixed version

3.0.4+dfsg-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade wordpress

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