XSS Vulnerability in OWASP AntiSamy - libowasp-antisamy-java Package

libowasp-antisamy-java Updated 02 Oct 2025

Summary

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

CVE-2017-14735: OWASP AntiSamy before 1.5.7 allows XSS via HTML5 entities, as demonstrated by use of &colon; to construct a javascript: URL. Affects libowasp-antisamy-java versions < e76f02a77afb4e43b897f13d17b5bc1260b8afde. 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

The libowasp-antisamy-java package is a Java library that provides a way to sanitize HTML and CSS to prevent cross-site scripting (XSS) attacks. It is widely used in web applications to ensure that user-generated content is safe for display. However, prior to version 1.5.7, it was found to be vulnerable to XSS through HTML5 entities, which could allow attackers to inject malicious scripts.

Vulnerability Detail

The vulnerability, identified as CVE-2017-14735, allows for cross-site scripting (XSS) via HTML5 entities. Attackers can exploit this vulnerability by constructing a javascript: URL using HTML5 entities, such as :, which can lead to unauthorized script execution in the context of the user's browser. This poses significant risks, including data theft, session hijacking, and the potential for further attacks on the web application.

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 upgrading is not immediately possible, consider implementing input validation and output encoding to mitigate the risk of XSS. For example, sanitize user input by removing or encoding potentially dangerous characters before processing or displaying it in your application.

Conclusion

The CVE-2017-14735 vulnerability in the libowasp-antisamy-java package poses a significant risk of XSS attacks through HTML5 entities. It is crucial to upgrade to the latest version to mitigate this risk. Additionally, implementing input validation and output encoding can serve as effective workarounds until an upgrade is possible.

See every vulnerability recorded for libowasp-antisamy-java →

Share this vulnerability

FAQ

CVE-2017-14735 is a vulnerability in the OWASP AntiSamy library that allows for cross-site scripting (XSS) through HTML5 entities.

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

Exploitation of this vulnerability can lead to unauthorized script execution, data theft, session hijacking, and further attacks on the web application.

The CVSS score for CVE-2017-14735 is 6.1, indicating a medium severity level.

Yes, you can implement input validation and output encoding to sanitize user input and reduce the risk of XSS attacks.

Related vulnerabilities

Recent vulnerabilities recorded for libowasp-antisamy-java.

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