Skip to content

KAFKA-20168: Downgrade Jetty from 12.0.32 to 12.0.25 to fix SLF4J 2.x incompatibility (4.1)#21561

Merged
AndrewJSchofield merged 1 commit intoapache:4.1from
mingyen066:jetty-downgrade-12.0.25-4.1
Feb 24, 2026
Merged

KAFKA-20168: Downgrade Jetty from 12.0.32 to 12.0.25 to fix SLF4J 2.x incompatibility (4.1)#21561
AndrewJSchofield merged 1 commit intoapache:4.1from
mingyen066:jetty-downgrade-12.0.25-4.1

Conversation

@mingyen066
Copy link
Collaborator

@mingyen066 mingyen066 commented Feb 24, 2026

Jetty 12.0.30+ introduced SLF4J 2.x fluent API usage
(Logger.atDebug()) which causes NoSuchMethodError at runtime since
Kafka still uses SLF4J 1.7.x. Downgrade to 12.0.25 which includes the
CVE-2025-5115 fix without the SLF4J 2.x incompatibility.

The issue was discovered and discussed in
#21452 (comment).

trunk: #21559

Jetty 12.0.30+ introduced SLF4J 2.x fluent API usage
(Logger.atDebug()) which causes NoSuchMethodError at runtime
since Kafka still uses SLF4J 1.7.x. Downgrade to 12.0.25 which
includes the CVE-2025-5115 fix without the SLF4J 2.x dependency.
@mingyen066 mingyen066 changed the title KAFKA-20168: Downgrade Jetty from 12.0.32 to 12.0.25 to fix SLF4J 2.x incompatibility KAFKA-20168: Downgrade Jetty from 12.0.32 to 12.0.25 to fix SLF4J 2.x incompatibility (4.1) Feb 24, 2026
@AndrewJSchofield AndrewJSchofield self-assigned this Feb 24, 2026
@AndrewJSchofield AndrewJSchofield self-requested a review February 24, 2026 13:23
@AndrewJSchofield AndrewJSchofield merged commit 36a3731 into apache:4.1 Feb 24, 2026
29 of 31 checks passed
@chia7712
Copy link
Member

@AndrewJSchofield are you preparing the RC? I'd like to push a follow-up to remind developers to cross-check the slf4j issue when upgrading jetty. The trunk and 4.2 have the comment, but 4.1 and 4.0 are currently missing it. I'm happy to wait until the current RC is finalized.

@AndrewJSchofield
Copy link
Member

@AndrewJSchofield are you preparing the RC? I'd like to push a follow-up to remind developers to cross-check the slf4j issue when upgrading jetty. The trunk and 4.2 have the comment, but 4.1 and 4.0 are currently missing it. I'm happy to wait until the current RC is finalized.

Yes, I am preparing the RC. Just got a set of system test results so I expect to send out the RC for approval soon.

@chia7712
Copy link
Member

chia7712 commented Feb 25, 2026

Yes, I am preparing the RC. Just got a set of system test results so I expect to send out the RC for approval soon.

Got it. I will push the addendum after RC is complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants