VulnWatch by ve1ve2
medium 5.9 EPSS 0.41%

GHSA-w3w6-9m25-g88p: OmniFaces: SSE push channels are not bound to their owning HTTP session

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
org.omnifaces:omnifaces

https://osv.dev/vulnerability/GHSA-w3w6-9m25-g88p ↗

osvmavenfix-available

OmniFaces: SSE push channels are not bound to their owning HTTP session ## Summary [GHSA-fp43-vj7g-pg92](https://github.com/omnifaces/omnifaces/security/advisories/GHSA-fp43-vj7g-pg92) (fixed 5.4.2) bound session- and view-scoped **WebSocket** (`o:socket`) push channels to the HTTP session that registered them, so a leaked channel ID can no longer be connected to from a foreign or absent HTTP session. The fix ([`d5cae243c4`](https://github.com/omnifaces/omnifaces/commit/d5cae243c4692555efaa4ba774e0f8f60e3f4db5)) touched only the `Socket*` classes. The parallel **SSE** (`o:sse`, added in 5.2) push transport was left unchanged. `SseEndpoint.doGet` accepts a connection whenever the presented channel ID is in the application-wide registry, without ever checking that the caller's HTTP session owns it. A leaked session/view-scoped SSE channel ID can therefore be replayed from any (or no) HTTP session to receive the messages pushed to it — exactly the behaviour the advisory removed for WebSocket, still present on SSE at the latest release. ## Root Cause Both push transports share the same base classes. A session- or view-scoped channel ID is minted as `channel + "?" + UUID.randomUUID()` and registered only in an application-scoped, session-agnostic registry: [`PushChannelManager#L123`](https://github.com/omnifaces/omnifaces/blob/7cd869c039c22c8a107547ec118717cd9b68305b/src/main/java/org/omnifaces/cdi/push/PushChannelManager.java#L123) mints it and [`#L136`](https://github.com/omnifaces/omnifaces/blob/7cd869c039c22c8a107547ec118717cd9b68305b/src/main/java/org/omnifaces/cdi/push/PushChannelManager.java#L136) calls `getPushSessions().register(channelId)`; the registry's membership test is [`PushSessionManager#L137-L139`](https://github.com/omnifaces/omnifaces/blob/7cd869c039c22c8a107547ec118717cd9b68305b/src/main/java/org/omnifaces/cdi/push/PushSessionManager.java#L137-L139): ```java protected boolean isRegistered(String channelId) { return sessions.containsKey(channelId); // keyed by channelId only — no HTTP-session dimension } ``` **WebSocket (fixed).** `SocketChannelManager.register` additionally records session/view channel IDs on the HTTP session, and the handshake refuses anything not owned by the caller's session, at [`SocketEndpoint.java#L133-L142`](https://github.com/omnifaces/omnifaces/blob/7cd869c039c22c8a107547ec118717cd9b68305b/src/main/java/org/omnifaces/cdi/push/SocketEndpoint.java#L133-L142): ```java if ( !SocketChannelManager.isApplicationScopedChannelId(channelId) && !SocketChannelManager.isChannelIdRegisteredInSession((HttpSession) request.getHttpSession(), channelId) ) { throw new IllegalStateException(ERROR_UNAUTHORIZED_CHANNEL); } ``` **SSE (unfixed).** `SseChannelManager` extends the base `register()` unchanged (no HTTP-session registration), and the endpoint's sole accept gate is the global `isRegistered` check, at [`SseEndpoint.java#L59-L66`](https://github.com/omnifaces/omnifaces/blob/7cd869c039c22c8a107547ec118717cd9b68305b/src/main/java/org/omnifaces/cdi/push/SseEndpoint. Affected: Maven:org.omnifaces:omnifaces Fixed in: 5.4.3 References: https://github.com/omnifaces/omnifaces/security/advisories/GHSA-w3w6-9m25-g88p https://nvd.nist.gov/vuln/detail/CVE-2026-109549 https://github.com/omnifaces/omnifaces/commit/78fe2b6989387f93718bdb932fb4497e338dd638 https://github.com/omnifaces/omnifaces

Linked vulnerabilities (3)

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

OmniFaces: SSE push channels are not bound to their owning HTTP session

CWE: CWE-862Aliases: CVE-2026-109549, GHSA-fp43-vj7g-pg92
CVE-2026-109549 medium 5.9 EPSS 0.41% (p37) NVDCVE.orgGHSAGHSA
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

OmniFaces: SSE push channels are not bound to their owning HTTP session

CWE: CWE-862Aliases: GHSA-w3w6-9m25-g88p, GHSA-fp43-vj7g-pg92NVD: Deferred

Also reported by (1)