Security Update for libhtmlcleaner-java

libhtmlcleaner-java Updated 02 Oct 2025

Summary

07/08/2023
N/A
Yes i
Unrated
Not published

DLA-3520-1: libhtmlcleaner-java - security update. Affects libhtmlcleaner-java versions < 2.21-5+deb10u1. Fixed in 2.21-5+deb10u1. 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 Your last release was probably never penetration tested 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 HTML parser library used for parsing and cleaning HTML documents. It provides functionality to parse HTML and extract information from it. However, a security vulnerability has been discovered in this library that could lead to a denial of service (StackOverflowError) if the parser encounters deeply nested HTML elements in user-supplied input. To address this issue, a new nesting depth limit has been introduced in the library.

Vulnerability Detail

The vulnerability in libhtmlcleaner-java arises when the parser encounters deeply nested HTML elements in user-supplied input. This can cause a StackOverflowError, leading to a denial of service. An attacker could exploit this vulnerability by providing specially crafted input to trigger the excessive nesting and cause the parser to crash. The impact of this vulnerability is limited to a denial of service, and there is no evidence of any further exploitation or arbitrary code execution.

How To Fix

Minimum fixed version

2.21-5+deb10u1

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 →

Conclusion

libhtmlcleaner-java has been found to have a security vulnerability that could lead to a denial of service if the parser encounters deeply nested HTML elements. To mitigate this issue, it is recommended to upgrade to the latest version of the package. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libhtmlcleaner-java →

Share this vulnerability

FAQ

libhtmlcleaner-java is a Java HTML parser library used for parsing and cleaning HTML documents. It provides functionality to extract information from HTML.

The vulnerability can lead to a denial of service (StackOverflowError) if the parser encounters deeply nested HTML elements in user-supplied input.

An attacker can exploit this vulnerability by providing specially crafted input with excessive nesting of HTML elements, causing the parser to crash and resulting in a denial of service.

There is no evidence of this vulnerability being exploited in the wild. The impact is limited to a denial of service, and there is no indication of arbitrary code execution or further exploitation.

To fix this vulnerability, upgrade the libhtmlcleaner-java package to version 2.21-5+deb10u1 or later. Apply the update as soon as possible to ensure the security of applications using this library.

Related vulnerabilities

Recent vulnerabilities recorded for libhtmlcleaner-java.

How To Fix

Minimum fixed version

2.21-5+deb10u1

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