CVE-2022-28366
Denial of service in HtmlUnit-Neko
Description
Certain Neko-related HTML parsers allow a denial of service via crafted Processing Instruction (PI) input that causes excessive heap memory consumption. In particular, this issue exists in HtmlUnit-Neko through 2.26, and is fixed in 2.27. This issue also exists in CyberNeko HTML through 1.9.22 (also affecting OWASP AntiSamy before 1.6.6), but 1.9.22 is the last version of CyberNeko HTML. NOTE: this may be related to CVE-2022-24939.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| net.sourceforge.htmlunit » neko-htmlunit | < 2.27 | 2.27 |
Blast radius
31% of the dependent artifacts (178) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 867 |
| 2 hops | 1,414 |
| 3 hops | 2,602 |
| 4 hops | 724 |
| 5 hops | 292 |
| 6 hops | 187 |
Most used dependents
- org.seleniumhq.selenium » selenium-java2,089 usages
- com.typesafe.play » play-test1,902 usages
- org.apache.kafka » kafka1,450 usages
- org.scalatestplus.play » scalatestplus-play1,286 usages
- com.typesafe.play » filters-helpers1,129 usages
- com.typesafe.play » play-ahc-ws693 usages
- net.sourceforge.htmlunit » htmlunit589 usages
- io.appium » java-client350 usages
- org.seleniumhq.selenium » selenium-server338 usages
- com.vaadin » vaadin-testbench259 usages
- org.seleniumhq.selenium » htmlunit-driver230 usages
- com.typesafe.play » play-specs2218 usages
- com.codeborne » phantomjsdriver164 usages
- org.owasp.esapi » esapi155 usages
- com.codeborne » selenide129 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2022-28366 | nvd.nist.gov |
| Package | HtmlUnit/htmlunit-neko | github.com |
| Web | nahsra/antisamy release v1.6.6 | github.com |
| Web | artifact/net.sourceforge.htmlunit/neko-htmlunit | search.maven.org |
| Web | projects/htmlunit/files/htmlunit/2.27 | sourceforge.net |
