ring icon indicating copy to clipboard operation
ring copied to clipboard

Bump Jetty deps from 11.x.x to 12.x.x

Open metametadata opened this issue 1 year ago • 3 comments

Would be great to bump Jetty so that no vulns are reported. Specifically, I currently get this report for [ring/ring-jetty-adapter "1.13.0"]:

NAME        INSTALLED  FIXED-IN  TYPE          VULNERABILITY        SEVERITY
jetty-http  11.0.24    12.0.12   java-archive  GHSA-qh8g-58pp-2wxh  Low

I could not quickly override the Ring's Jetty deps in my projects as the structure of Jetty repos changed in 12.0.0. See org.eclipse.jetty.ee{8,9,10} new coordinates in https://jetty.org/docs/jetty/12/programming-guide/migration/11-to-12.html.

metametadata avatar Oct 24 '24 17:10 metametadata

It seems jetty 11 has reached its end of life. You can switch to rj9a for now for latest jetty https://github.com/sunng87/ring-jetty9-adapter .

sunng87 avatar Oct 24 '24 18:10 sunng87

Jetty tends to change around its API every version, so unfortunately we can't just update the artifacts and expect Jetty to still work. It'll likely require a fair bit of effort, as I'm sure @sunng87 can attest.

weavejester avatar Oct 24 '24 22:10 weavejester

That's true. Especially for Jetty 12 they refactored a lot to drop dependency for JavaEE APIs.

sunng87 avatar Oct 24 '24 22:10 sunng87

I got here because of a docker image scan failure reported to me, specifically for jetty-http: https://scout.docker.com/vulnerabilities/id/CVE-2024-6763?s=github&n=jetty-http&ns=org.eclipse.jetty&t=maven&vr=%3E%3D7.0.0%2C%3C%3D12.0.11

Is there a plan to switch to jetty 12.x anytime soon?

jumarko avatar Nov 27 '24 07:11 jumarko

It'll be updated as soon as I, or anyone else, gets the time to do so. That probably means sometime in December.

As far as I'm aware, the reported vulnerabilities in Jetty 11 do not affect Ring.

weavejester avatar Nov 27 '24 15:11 weavejester

Fixed by eda1676. It turns out that the class files we needed are all still there, just with different packages paths and found in different artifacts, so a much easier transition than going from Jetty 9 to 10.

weavejester avatar Mar 23 '25 15:03 weavejester

By they way, :thread-pool (org.eclipse.jetty.util.thread.VirtualThreadPool.) works great with this -- testing for a few hours now. ⚡😄

lnostdal avatar Mar 23 '25 22:03 lnostdal