Skip to content

[3.27] 3.27.6 backports 4 - #56513

Open
jmartisk wants to merge 3 commits into
quarkusio:3.27from
jmartisk:3.27.6-backports-4
Open

[3.27] 3.27.6 backports 4#56513
jmartisk wants to merge 3 commits into
quarkusio:3.27from
jmartisk:3.27.6-backports-4

Conversation

@jmartisk

@jmartisk jmartisk commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

cnbehr and others added 3 commits September 9, 2026 14:37
An empty or delimiter-only bearer token has zero StringTokenizer tokens, so the
unguarded nextToken() in getJwtContentPart threw NoSuchElementException. That is
not an AuthenticationFailedException, so it escaped
BearerAuthenticationMechanism and AbstractHttpAuthorizer turned it into
routingContext.fail(t) -- HTTP 500 plus an ERROR stack trace, remotely
triggerable by any unauthenticated caller on any bearer-protected endpoint.

The method already returns null for 'not a JWT', so hoisting a hasMoreTokens()
check above the first nextToken() needs no caller changes: isOpaqueToken
correctly returns true and the request falls through to normal 401 handling.

decodeJwtHeaders and decodeJwtHeadersAsString in OidcUtils carried the identical
unguarded call and are fixed the same way.

Fixes quarkusio#55887

(cherry picked from commit 56247e9)
(cherry picked from commit 7fc6601)
Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.23.1 to 1.23.2.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md)
- [Commits](jhy/jsoup@jsoup-1.23.1...jsoup-1.23.2)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-version: 1.23.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 8a4538b)
@jmartisk
jmartisk requested a review from a team September 9, 2026 12:39
@quarkus-bot

quarkus-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

Thanks for your pull request!

Your pull request does not follow our editorial rules. Could you have a look?

  • description should not be empty, describe your intent or provide links to the issues this PR is fixing (using Fixes #NNNNN) or changelogs

This message is automatically generated by a bot.

@quarkus-bot

quarkus-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

/cc @aloubyansky (3.27), @gsmet (3.27), @rsvoboda (3.27)

@quarkus-bot quarkus-bot Bot added area/dependencies Pull requests that update a dependency file area/oidc labels Sep 9, 2026
@quarkus-bot quarkus-bot Bot changed the title 3.27.6 backports 4 [3.27] 3.27.6 backports 4 Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dependencies Pull requests that update a dependency file area/oidc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants