Critical Denial of Service Vulnerability in libhtmlcleaner-java

libhtmlcleaner-java Updated 03 Oct 2025

Summary

07/03/2024
N/A
Yes i
Unrated
Not published

USN-6683-1: libhtmlcleaner-java vulnerability. Affects libhtmlcleaner-java versions < 2.21-2ubuntu0.1~esm1. Fixed in 2.21-2ubuntu0.1~esm1. 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

libhtmlcleaner-java is a Java library designed for cleaning and parsing HTML documents. It provides functionalities to manipulate HTML content, making it easier for developers to work with web data. However, a recent vulnerability has been discovered that affects its stability and security, potentially leading to application crashes when handling certain HTML documents.

Vulnerability Detail

The vulnerability, identified as CVE-2023-34624, arises from improper handling of specific HTML documents by the HtmlCleaner library. An attacker could exploit this flaw to craft malicious HTML content that, when processed by the library, could cause a denial of service by crashing the application. This vulnerability poses a significant risk, especially for applications relying on libhtmlcleaner-java for HTML processing, as it can lead to unexpected downtimes and service interruptions.

How To Fix

Minimum fixed version

2.21-2ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libhtmlcleaner-java

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

Workaround

If updating the package is not immediately feasible, consider implementing input validation to sanitize HTML documents before processing them with libhtmlcleaner-java. This can help mitigate the risk of denial of service by rejecting potentially harmful HTML content.

Conclusion

The libhtmlcleaner-java vulnerability (CVE-2023-34624) poses a significant risk to applications that utilize this library for HTML processing. It is crucial to update to the latest patched versions to ensure application stability and security. Additionally, implementing workarounds can help mitigate risks until updates can be applied.

See every vulnerability recorded for libhtmlcleaner-java →

Share this vulnerability

FAQ

CVE-2023-34624 is a vulnerability in the libhtmlcleaner-java library that allows attackers to cause a denial of service by crashing applications that process certain HTML documents.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file, such as package-lock.json, you can check for vulnerabilities without needing to install any software.

Yes, patched versions of libhtmlcleaner-java are available for Ubuntu 18.04, 20.04, and 22.04 LTS. Updating to these versions will resolve the vulnerability.

If exploited, this vulnerability can lead to application crashes, resulting in service interruptions and potential data loss, affecting user experience and trust.

Implement input validation to sanitize HTML documents before processing them with libhtmlcleaner-java. This can help prevent denial of service attacks.

Related vulnerabilities

Recent vulnerabilities recorded for libhtmlcleaner-java.

How To Fix

Minimum fixed version

2.21-2ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libhtmlcleaner-java

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