You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
known security issue in dropwizard-jetty version 2.0.21 (sub-)dependency #3969
@mschwenke-up Thanks for reporting this! Unfortunately, this is not a straight forward dependency update.
Jersey 3.x is using the Jakarta EE namespace jakarta.* instead of javax.*, so we won't upgrade to Jersey 3.x in Dropwizard 2.x because we'd also need to upgrade every single dependency or integration with Jersey as well. This includes at least Jetty, Hibernate Validator, and Jackson.
As for Jersey 2.34, it introduced its own provider for Optional<T> parameters which has a different behavior than the one used in Dropwizard since Dropwizard 1.0.0 (#1365).
This has been outlined in eclipse-ee4j/jersey#4651 (comment) (and following comments) and eclipse-ee4j/jersey#4790 and it would break existing users of Dropwizard who are using Optional<T> parameters in query parameters, headers, or cookies.
The advisory at GHSA-c43q-5hpj-4crv describes a workaround by defining an application-specific temporary directory via the java.io.tmpdir system property, which I would recommend doing for the time being.
@dropwizard/committers Any opinions on breaking existing consumers (for Optional<T> parameters) with Jersey 2.34+?
Unless we can define the tmpdir system property within the framework somehow, I think security issues take precedence over backward compatibility breaks. Assuming we can document it well enough.
In my opinion the Optional<T> parameter converter in Jersey 2.34 (and Jersey 3.0.1) is seriously broken while this security issue can be easily mitigated for existing users.
Next issue: The Optional<T> parameter converter doesn't support custom types (eclipse-ee4j/jersey#4798).
@mleegwt The Optional<T> support is still "sub-optimal" and incompatible with how Dropwizard handled them. Unfortunately one cannot override these providers to retain the old behavior.
Activity
joschi commentedon May 16, 2021
@mschwenke-up Thanks for reporting this! Unfortunately, this is not a straight forward dependency update.
Jersey 3.x is using the Jakarta EE namespace
jakarta.*instead ofjavax.*, so we won't upgrade to Jersey 3.x in Dropwizard 2.x because we'd also need to upgrade every single dependency or integration with Jersey as well. This includes at least Jetty, Hibernate Validator, and Jackson.As for Jersey 2.34, it introduced its own provider for
Optional<T>parameters which has a different behavior than the one used in Dropwizard since Dropwizard 1.0.0 (#1365).This has been outlined in eclipse-ee4j/jersey#4651 (comment) (and following comments) and eclipse-ee4j/jersey#4790 and it would break existing users of Dropwizard who are using
Optional<T>parameters in query parameters, headers, or cookies.The advisory at GHSA-c43q-5hpj-4crv describes a workaround by defining an application-specific temporary directory via the
java.io.tmpdirsystem property, which I would recommend doing for the time being.@dropwizard/committers Any opinions on breaking existing consumers (for
Optional<T>parameters) with Jersey 2.34+?jplock commentedon May 16, 2021
Unless we can define the tmpdir system property within the framework somehow, I think security issues take precedence over backward compatibility breaks. Assuming we can document it well enough.
joschi commentedon May 18, 2021
In my opinion the
Optional<T>parameter converter in Jersey 2.34 (and Jersey 3.0.1) is seriously broken while this security issue can be easily mitigated for existing users.Next issue: The
Optional<T>parameter converter doesn't support custom types (eclipse-ee4j/jersey#4798).fliden commentedon Aug 30, 2021
Resolving vulnerabilities and we're getting flagged for jersey-commons:2.33 as well via Dropwizard, any plans to upgrade to 2.34 by any chance?
joschi commentedon Aug 31, 2021
@fliden The comments from #3969 (comment) still apply and Jersey 2.35 hasn't been released yet.
mleegwt commentedon Sep 10, 2021
I noticed that Jersey 2.35 has been released.
joschi commentedon Sep 11, 2021
@mleegwt The
Optional<T>support is still "sub-optimal" and incompatible with how Dropwizard handled them. Unfortunately one cannot override these providers to retain the old behavior.eclipse-ee4j/jersey#4790