CVE-2026-15565: Undertow: undertow-websockets: undertow: pre-auth dos on websocket endpoint with @serverendpoint class with any @onmessage method

Published Jun 19, 2026
·
Updated

A flaw was found in Undertow. A remote attacker can cause Out of Memory on websockets endpoint without authentication on any @ServerEndpoint class that has any @OnMessage method. This allows an attacker to cause Denial of Service attack without authentication and using only a standard WebSocket handshake.

Other sources

The application server is supposed to have a size limit on incoming messages. If a message is too large, the server should reject it and close the connection. This limit is called maxMessageSize.

Two separate defects in the Undertow library (the web engine inside JBoss EAP) mean this limit is never actually enforced for text messages:

Defect 1 — The limit is never configured: When the server receives a text WebSocket message, it creates an internal buffer object called BufferedTextMessage to collect the incoming data. The code that creates this object always passes -1 as the size limit, which means "no limit". This happens regardless of what limit the application developer specified in their code. The developer's setting is simply ignored and discarded.

For comparison, when the server handles binary messages, the code correctly reads the developer's configured limit and passes it to the buffer. Text messages were overlooked.

Defect 2 — The size check is never called during data arrival: Even if the limit were correctly configured (which it is not, due to Defect 1), there is a second problem. When data arrives asynchronously — meaning the client sends data in chunks over time — the server processes each chunk via an event listener. That listener collects and stores each chunk of data but never calls the function that checks whether the accumulated size has exceeded the limit. The size check only runs when the connection ends, by which point all the data is already sitting in memory.

There is a open jira and a pull request for fixing defect 1 but that is still not enough to prevent DoS attack due to defect 2 : https://redhat.atlassian.net/browse/UNDERTOW-2770 https://github.com/undertow-io/undertow/pull/1960 https://cwe.mitre.org/data/definitions/120.html

Red Hat

Affected Software

2 affected components
Undertow Undertow
Undertow undertow-websockets

Event History

Jun 19, 2026
Data Sourced
via Red Hat·01:25 AM
DescriptionSeverityAffected Software
Aug 11, 2026
CVE Published
via MITRE·08:49 AM
Data Sourced
via MITRE·08:49 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-15565?

The severity of CVE-2026-15565 is high, with a CVSS score of 7.5.

2

How do I fix CVE-2026-15565?

To fix CVE-2026-15565, you should update to the latest version of Undertow that addresses this vulnerability.

3

What is the risk associated with CVE-2026-15565?

The risk associated with CVE-2026-15565 is categorized as a Denial of Service (DoS) attack that can lead to an Out of Memory condition.

4

Can an attacker exploit CVE-2026-15565 without authentication?

Yes, an attacker can exploit CVE-2026-15565 without authentication on any @ServerEndpoint class.

5

Which component of Undertow is affected by CVE-2026-15565?

CVE-2026-15565 affects the websocket endpoint functionality within Undertow when using any @OnMessage method.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203