Cross-Site Scripting (XSS) Vulnerability in jsoup - CVE-2015-6748

jsoup Updated 02 Oct 2025

Summary

25/09/2017
N/A
Yes i
Medium
6.1

CVE-2015-6748: Cross-site scripting (XSS) vulnerability in jsoup before 1.8.3. Affects jsoup versions < 1.8.3-1. Fixed in 1.8.3-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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

jsoup is a popular Java library used for parsing HTML and manipulating the DOM. It provides a convenient API for extracting and working with data from HTML documents, making it a valuable tool for web scraping and data extraction tasks. However, prior to version 1.8.3, jsoup was susceptible to a cross-site scripting (XSS) vulnerability that could allow attackers to inject malicious scripts into web applications that utilize jsoup for HTML parsing.

Vulnerability Detail

The vulnerability, identified as CVE-2015-6748, is a cross-site scripting (XSS) issue that affects jsoup versions before 1.8.3. It arises from improper handling of user input, which could allow an attacker to inject arbitrary JavaScript code into web pages rendered by applications using jsoup. This could lead to unauthorized actions being performed on behalf of users, data theft, or other malicious activities. The severity of this vulnerability is reflected in its CVSS score of 6.1, indicating a moderate risk level.

How To Fix

Minimum fixed version

1.8.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade jsoup

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

Workaround

If upgrading jsoup is not immediately feasible, a temporary workaround is to sanitize user input before processing it with jsoup. This can be achieved by using libraries such as OWASP Java HTML Sanitizer or similar tools that can help filter out potentially harmful scripts from user inputs.

Conclusion

CVE-2015-6748 is a significant cross-site scripting vulnerability affecting jsoup versions before 1.8.3. It is crucial for developers using jsoup to upgrade to the latest version to protect their applications from potential attacks. Additionally, implementing input sanitization can provide a temporary safeguard against this vulnerability.

See every vulnerability recorded for jsoup →

Share this vulnerability

FAQ

CVE-2015-6748 is a cross-site scripting (XSS) vulnerability found in jsoup versions prior to 1.8.3, which allows attackers to inject malicious scripts into web applications.

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

The potential impacts include unauthorized actions performed on behalf of users, data theft, and other malicious activities that could compromise user security.

The recommended action is to upgrade jsoup to version 1.8.3 or later to eliminate the vulnerability.

Yes, you can sanitize user input using libraries like OWASP Java HTML Sanitizer as a temporary measure until you can upgrade jsoup.

Related vulnerabilities

Recent vulnerabilities recorded for jsoup.

How To Fix

Minimum fixed version

1.8.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade jsoup

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