CVE-2023-2798 is a high-severity (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in org.htmlunit:htmlunit. A fix is available for org.htmlunit:htmlunit — see the affected versions and patch details below.
Denial of service in HtmlUnit
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.htmlunit:htmlunitReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Those using HtmlUnit to browse untrusted webpages may be vulnerable to Denial of service attacks (DoS). If HtmlUnit is running on user supplied web pages, an attacker may supply content that causes HtmlUnit to crash by a stack overflow. This effect may support a denial of service attack. This issue affects HtmlUnit before 2.70.0.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.htmlunit:htmlunit | all versions | 2.70.0org.htmlunit:htmlunit:2.70.0 |
Affected Products
htmlunithtmlunitDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.htmlunit:htmlunit, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.htmlunit:htmlunit to 2.70.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2023-2798 is resolved across your whole dependency graph.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Migration Toolkit for Runtimes 1 on RHEL 8 | com.google.guava-guava-parent | RHSA-2023:3814 |
| MTA-6.2-RHEL-9 | mta/mta-operator-bundle:6.2.0-29 | RHSA-2023:4627 |
Frequently Asked Questions
Is CVE-2023-2798 in your dependencies?
Find it across Maven, including transitive dependencies.