CVE-2015-6748: Cross-Site Scripting Vulnerability in org.jsoup:jsoup

org.jsoup:jsoup Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
6.1

CVE-2015-6748: Improper Neutralization of Input During Web Page Generation in Jsoup. Affects org.jsoup:jsoup versions >= 1.6.0, < 1.8.3. Fixed in 1.8.3. How to fix ↓

Also tracked for

The same CVE-2015-6748 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

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

org.jsoup:jsoup is a Java library used for parsing HTML documents. It provides a convenient API for extracting and manipulating data from HTML files. The library is widely used in web scraping, web crawling, and other HTML parsing tasks. However, versions of jsoup before 1.8.3 are vulnerable to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability in jsoup arises from improper neutralization of input during web page generation. This allows an attacker to inject malicious scripts into web pages generated by jsoup, which can then be executed by unsuspecting users. The impact of this vulnerability can range from stealing sensitive information, such as login credentials or session cookies, to performing actions on behalf of the user without their consent.

How To Fix

Minimum fixed version

1.8.3

This is the first release that contains the fix.

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

Workaround

If upgrading to the latest version of jsoup is not feasible, a temporary workaround is to manually sanitize user input before passing it to jsoup for HTML generation. This can be done by using a library or framework that provides HTML sanitization functionality, such as OWASP Java HTML Sanitizer.

Conclusion

The cross-site scripting vulnerability in org.jsoup:jsoup can have serious security implications for applications that use this library. It is crucial to upgrade to the latest version of jsoup or apply proper input sanitization to mitigate the risk. For additional support and guidance, reach out to DevNack.com.

See every vulnerability recorded for org.jsoup:jsoup →

Share this vulnerability

FAQ

The vulnerability allows an attacker to inject malicious scripts into web pages generated by jsoup, which can lead to various attacks, including stealing sensitive information or performing unauthorized actions.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the pom.xml file.

There are known exploits for XSS vulnerabilities in general, but no specific exploits targeting this vulnerability in jsoup have been reported.

Yes, the CVSS score for this vulnerability is 6.1, indicating a moderate severity.

For further support on vulnerability remediation, you can contact info@devnack.com. They can provide assistance and guidance in fixing the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for org.jsoup:jsoup.

How To Fix

Minimum fixed version

1.8.3

This is the first release that contains the fix.

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