REDHAT-BUG-2498118: High severity npm/engine.io vulnerability
Socket.IO enables bidirectional and low-latency communication for every platform. From 4.1.0 before 6.6.7, Engine.IO protocol v4 polling transport does not properly close the HTTP response for invalid binary POST requests with Content-Type: application/octet-stream, allowing an unauthenticated attacker to exhaust server-side connections and sockets. This issue is fixed in version 6.6.7.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.6.7
Event History
Frequently Asked Questions
What must an attacker be able to do to exploit this issue?
An attacker must be able to send unauthenticated Engine.IO protocol v4 polling POST requests to the affected server. The malicious requests use Content-Type: application/octet-stream and invalid binary request bodies.
What is the practical impact of successful exploitation?
Invalid binary POST requests may leave HTTP responses open, allowing an attacker to consume server-side connections and sockets. Repeated requests can exhaust these resources and disrupt availability.
Which deployments are affected?
Deployments using npm/engine.io versions from 4.1.0 up to, but not including, 6.6.7 are affected when they expose Engine.IO protocol v4 polling transport. The issue is fixed in version 6.6.7.
What can be done if upgrading is not immediately possible?
Limit unauthenticated access to the Engine.IO polling endpoint where possible, since exploitation requires unauthenticated HTTP POST requests. Restricting which clients can reach that endpoint can reduce exposure to connection and socket exhaustion.