DEV Community

johnettwawers
johnettwawers

Posted on

Apache Unomi's GraphQL WebSocket Upgrade Needs an Authentication Gate

Apache Unomi's GraphQL WebSocket Upgrade Needs an Authentication Gate

Apache Unomi has a critical missing-authentication flaw in its GraphQL WebSocket upgrade path. CVE-2026-126628 affects Unomi 2.0.0 before 3.1.0 and 4.0.0-rc1 before 4.0.0. The vendor assigns CVSS 4.0 a score of 9.3. The condition applies only when GraphQL is enabled; GraphQL is disabled by default. In an affected deployment, a remote client can complete a WebSocket upgrade that should have required authentication.

Default and deployed configuration are different questions and both belong in the response. A server that never enabled GraphQL is not automatically exposed through this code path. A server that enabled GraphQL for a customer portal, administration console, or internal integration needs a direct configuration review. The upgrade request may not look like an ordinary GraphQL POST, so a proxy rule that protects /graphql without covering the WebSocket handshake can leave a gap.

Upgrade to Unomi 3.1.0 or 4.0.0 according to the supported line. If an immediate upgrade is not possible, disable GraphQL and remove external routes to its WebSocket endpoint. Restrict the management interface to trusted networks, and inspect proxy configuration for upgrade headers. A rule that only matches HTTP response status or a specific URL suffix is not enough to prove that a WebSocket handshake is denied.

Test with an unauthenticated client that sends a WebSocket upgrade request to the GraphQL endpoint. The expected result is a rejection before any GraphQL operation runs. Then repeat with an authenticated session and confirm that the intended authorization policy still applies. Check whether the reverse proxy forwards Upgrade and Connection headers, because a backend that is correctly patched can still look unusual when a middlebox rewrites the handshake.

Logs should be reviewed for WebSocket upgrades to GraphQL paths, especially those that were accepted without a session record. The absence of a normal HTTP request log is a reason to look at the gateway and WebSocket server logs, not a reason to assume no activity occurred. Correlate source addresses, user agents, and any immediately following GraphQL mutations.

After remediation, add configuration monitoring that alerts when GraphQL is enabled outside the approved environment. Treat the setting as an exposed administrative capability, not an implementation detail. The patch closes the code path; the configuration control keeps the next deployment from reopening it.

References

Top comments (0)