GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update Netty to 4.2.17.Final for CVE-2026-75595 by Copilot · Pull Request #254 · navikt/aap-test-token-provider

Conversation

Copilot AI commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Fragmented TLS ClientHello messages can bypass Netty’s SNI routing and select a permissive default SSL context, potentially bypassing per-SNI mTLS.

  • Dependency update: Add the Netty 4.2.17.Final BOM to align transitive modules at the lowest patched version without upgrading Ktor.
  • Reachability Assessment: High confidence—not reachable in the checked-in configuration. The application serves plaintext HTTP on port 8080 behind HTTPS ingress; no TLS connector, SNI routing, or per-SNI mTLS is configured. This update primarily addresses vulnerability scanners rather than active application exposure. Live ingress configuration is outside this repository.
Original prompt

This section details the Dependabot vulnerability alert you should resolve

<alert_title>Netty: SNI Routing Bypass via Fragmented TLS ClientHello Causing Fallback to Default SslContext</alert_title>
<alert_description>### Summary
A fragmented TLS ClientHello whose handshake header spans multiple records makes Netty silently fall back to the default SslContext; where per-SNI selection is the sole mTLS gate, an unauthenticated attacker can bypass the route's mTLS requirement.

Details

In io.netty.handler.ssl.SslClientHelloHandler#decode the guard that should wait for the 4-byte handshake header checks the wrong offset - it ignores the 5-byte record header that precedes it - and therefore never fires:

if (handshakeLength == -1) {
    if (readerIndex + 4 > endOffset) {
        // Need more data to read HandshakeType and handshakeLength (4 bytes)
        return;
    }

When the first record's payload is < 4 bytes, handshakeLength = in.getUnsignedMedium(readerIndex + SslUtils.SSL_RECORD_HEADER_LENGTH + 1); leads to IndexOutOfBoundsException . That is caught by the generic catch (Exception) block, which calls select(ctx, null) - this is the default SslContext. Fallback to default on parse failure is a problem when per-SNI selection is the sole mTLS gate.

Impact

SNI routing bypass. Escalates to an unauthenticated mTLS bypass only when:

  • mTLS is enforced solely via per-SNI SslContext (clientAuth=REQUIRE)
  • the default/fallback SslContext is permissive (clientAuth=NONE/OPTIONAL)
  • no secondary peer-certificate verification exists at the application layer.</alert_description>

critical
GHSA-c4c3-7fpv-j4q5, CVE-2026-75595
io.netty:netty-handler
maven
<vulnerable_versions>= 4.2.16.Final</vulnerable_versions>
<patched_version>4.2.17.Final</patched_version>
<manifest_path>settings.gradle.kts</manifest_path>

https://github.com/netty/netty/security/advisories/GHSA-c4c3-7fpv-j4q5 https://nvd.nist.gov/vuln/detail/CVE-2026-75595 https://github.com/netty/netty/pull/17213 https://github.com/netty/netty/pull/17217 https://github.com/netty/netty/commit/1b5abc6443b63726c72cdd285af2feb7ddbb8ff7 https://github.com/netty/netty/commit/9e0519239108a69b7e9bbc5e9182ee139a0d7961 https://github.com/netty/netty/releases/tag/netty-4.1.137.Final https://github.com/netty/netty/releases/tag/netty-4.2.17.Final https://github.com/advisories/GHSA-c4c3-7fpv-j4q5

<task_instructions>Resolve this alert by updating the affected package to a non-vulnerable version. Prefer the lowest non-vulnerable version (see the patched_version field above) over the latest to minimize breaking changes. Include a Reachability Assessment section in the PR description. Review the alert_description field to understand which APIs, features, or configurations are affected, then search the codebase for usage of those specific items. If the vulnerable code path is reachable, explain how (which files, APIs, or call sites use the affected functionality) and note that the codebase is actively exposed to this vulnerability. If the vulnerable code path is not reachable, explain why (e.g. the affected API is never called, the vulnerable configuration is not used) and note that the update is primarily to satisfy vulnerability scanners rather than to address an active risk. If the advisory is too vague to determine reachability (e.g. 'improper input validation' with no specific API named), state that reachability could not be determined and explain why. Include a confidence level in the reachability assessment (e.g. high confidence if the advisory names a specific API and you confirmed it is or is not called, low confidence if the usage is indirect and hard to trace). If no patched version is available, check the alert_description field for a Workarounds section — the advisory may describe configuration changes or usage patterns that mitigate the vulnerability without a version update. If a workaround is available, apply it and leave a code comment referencing the advisory identifier explaining it is a temporary mitigation. If neither a patch nor a workaround is available, explain in the PR description why the alert cannot be resolved automatically so a human reviewer can take over. Inspect the repository to determine which package manager is used (e.g. lock files, config files, build scripts) and use that tooling to perform the update — do not edit lock files directly. If the version constraint in the manifest (e.g. package.json, Gemfile, pyproject.toml) caps the version below the fix, update the constraint first. For transitive dependencies, determine whether it is simpler to update the direct dependency that pulls in the vulnerable package or to update the transitive dependency directly, and choose the least disruptive ap...

  • Resolves navikt/aap-test-token-provider alert Bump com.google.code.gson:gson from 2.13.0 to 2.13.1 #87

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Initial plan
942a0fa
Copilot AI assigned Copilot and FredrikMeyer Oct 27, 2026
Copilot started work on behalf of FredrikMeyer October 27, 2026 12:45
View session
@FredrikMeyer
fix: align Netty dependencies to patched 4.2.17.Final
60101a2
Co-authored-by: FredrikMeyer <[email protected]>
Copilot AI changed the title [WIP] Fix Netty SNI routing bypass vulnerability Update Netty to 4.2.17.Final for CVE-2026-75595 Oct 27, 2026
@FredrikMeyer

FredrikMeyer commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

@copilot use libs.toml

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot finished work on behalf of FredrikMeyer October 27, 2026 12:50
Copilot AI requested a review from FredrikMeyer October 27, 2026 12:50
Copilot started work on behalf of FredrikMeyer October 27, 2026 12:50
View session
@FredrikMeyer
refactor: declare Netty BOM in libs version catalog
fdafa8d
Co-authored-by: FredrikMeyer <[email protected]>

Copilot AI commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@copilot use libs.toml

Moved the Netty BOM into gradle/libs.versions.toml and reference it via libs.netty.bom in fdafa8d. Patched version resolution, both tests, and the full build pass.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot finished work on behalf of FredrikMeyer October 27, 2026 12:54
@FredrikMeyer
FredrikMeyer marked this pull request as ready for review October 27, 2026 12:56
@FredrikMeyer
FredrikMeyer requested a review from a team as a code owner October 27, 2026 12:56
@FredrikMeyer
FredrikMeyer merged commit f248e0c into main Oct 27, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@FredrikMeyer
FredrikMeyer deleted the copilot/fix-netty-sni-routing-bypass branch October 27, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@FredrikMeyer FredrikMeyer Awaiting requested review from FredrikMeyer

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@FredrikMeyer FredrikMeyer

Copilot code review Copilot

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@FredrikMeyer
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.