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-24839.
Remediation
References
https://github.com/nahsra/antisamy/releases/tag/v1.6.6
https://search.maven.org/artifact/net.sourceforge.htmlunit/neko-htmlunit
https://sourceforge.net/projects/htmlunit/files/htmlunit/2.27/
Related Vulnerabilities
CVE-2020-36187 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2021-21695 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2020-2263 Vulnerability in maven package org.jenkins-ci.plugins:radiatorviewplugin
CVE-2022-24847 Vulnerability in maven package org.geoserver.web:gs-web-sec-jdbc
CVE-2020-11988 Vulnerability in maven package org.apache.xmlgraphics:xmlgraphics-commons