HtmlUnit vulnerability
Published: Tue, 05 May 2026 21:05
Summary
HtmlUnit could be made to run programs as your login if it opened a malicious website.
Details
It was discovered that HtmlUnit was vulnerable to remote code execution via XSLT when browsing an attacker-controlled webpage. An attacker could possibly use this issue to execute arbitrary code in the context of the application using HtmlUnit.
Recommended actions per Ubuntu release
StackPatch playbook auto-generated per release codename and per affected package.
Ubuntu bionic
htmlunit→2.8-3ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 2.8-3ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y htmlunit
Most apt upgrades restart their service automatically. needrestart lists anything else.
libhtmlunit-java→2.8-3ubuntu1+esm1apt_upgradeStandard apt upgrade. Install 2.8-3ubuntu1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libhtmlunit-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu xenial
htmlunit→2.8-1ubuntu2.1+esm1apt_upgradeStandard apt upgrade. Install 2.8-1ubuntu2.1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y htmlunit
Most apt upgrades restart their service automatically. needrestart lists anything else.
libhtmlunit-java→2.8-1ubuntu2.1+esm1apt_upgradeStandard apt upgrade. Install 2.8-1ubuntu2.1+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libhtmlunit-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
Are YOU affected by USN-8220-1?
5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8220-1 (and any other live CVE) applies. Anonymous, no signup.
curl https://mindsparkstack.com/scan.sh | bash
StackPatch runs this match against YOUR installed packages every hour
Free 1-server / $99 lifetime founder seat (50 only) / $19+/mo monthly. Indie pricing.