[GHSA-fv25-8xcx-gqjc] Apache Tomcat - WebSocket authentication header exposure - #9531
Closed
levpachmanov wants to merge 1 commit into
Closed
levpachmanov wants to merge 1 commit into
levpachmanov wants to merge 1 commit into
Conversation
github-actions
Bot
changed the base branch from
main
to
levpachmanov/advisory-improvement-9531
September 15, 2026 09:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
Comments
Why GHSA-fv25-8xcx-gqjc points at the wrong packages
CVE-2026-42498 is a bug in Tomcat's WebSocket client: after an authenticated
WebSocket request is redirected, the client re-sends the
Authorizationheader tothe redirect target. The vulnerable code lives entirely in the Java package
org.apache.tomcat.websocket.Tomcat ships that package in its own JARs.
build.xmldefines:files.tomcat-websocket=org/apache/tomcat/websocket/**→tomcat-websocket.jarand (with the WebSocket API)
tomcat-embed-websocket.jarfiles.tomcat-embed-core= catalina, servlet-api, jaspic-api, tomcat-api, juli,org/apache/coyote/**,org/apache/tomcat/jni/**,org/apache/tomcat/util/**files.catalina(→tomcat-catalina.jar) =org/apache/catalina/**+org/apache/naming/**Neither of the last two includes
org/apache/tomcat/websocket/**, and the threeupstream fix commits (
169d7257,6cbe2745,b7b17369) touch nothing outside it.Unzipping the 9.0.117 artifacts confirms it:
org/apache/tomcat/websocket/entriesorg.apache.tomcat.embed:tomcat-embed-coreorg.apache.tomcat:tomcat-catalinaorg.apache.tomcat.embed:tomcat-embed-websocketorg.apache.tomcat:tomcat-websocketSo the advisory is wrong in both directions:
tomcat-embed-coreortomcat-catalinais told to upgrade for code they don't ship.
tomcat-websocketandtomcat-embed-websocketare separatelyresolved Maven artifacts, so projects that actually carry the vulnerable client get
no alert at all.
org.apache.tomcat:tomcatstays affected: it's the full binary distribution(
tomcat-<version>.tar.gz/.zip), which bundleslib/tomcat-websocket.jar.