Skip to content

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

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

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

Conversation

@mingyen066
Copy link
Collaborator

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.0) Feb 24, 2026
@viktorsomogyi viktorsomogyi merged commit 67bec73 into apache:4.0 Feb 24, 2026
12 checks passed
@chia7712
Copy link
Member

@viktorsomogyi 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.

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