-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider downgrading Jackson to 2.6 #6536
Comments
I think 2.6.x would be a step too far. There's a security vulnerability in the XML mapper that is only fixed in 2.7.4 and later. While we don't use the XML mapper, I think it's preferable to not provide a vulnerable version by default rather than working with Java 6 by default. We already have some other dependencies that require Java 7 by default : Hikari, Jetty, and the Postgres JDBC driver, IIRC. I could be persuaded that using 2.7.x in 1.4 and moving to 2.8 (or later) in 1.5 is a reasonable compromise. However, there's no guarantee that we won't face the same problem again. Elasticsearch has an upgrade to 2.8 planned but only for 3.0 (elastic/elasticsearch#18939) and we're using 2.3.x at the moment. |
I agree this isn't ideal but what annoys me a lot is that start.spring.io can generates broken projects because of this. We would need for sure to update the documentation and maybe reference it when Java6 is selected? |
Totally out of context but but next elasticsearch version will be 5.0.0 not 3. |
I extend the test case for #6508 at /agebhar1/spring-boot-6508-jackson-elasticsearch by profile with Jackson version 2.7.6 - all test's passed. A short check with japicmp only on Jackson's core library, where the critical change for #6508 occurred, got:
and
Is there a chance to get the fix of the security vulnerability in the XML mapper backported to version 2.6.x? To take only #6508 into account Jackson 2.7.6 would be fine. |
That's a question for the Jackson team. You'll need to raise an issue with them. |
Okay. I will raise an issue on the Jackson team/project, at least Elasticsearch's current version 2.3.5 still uses Jackson 2.6.6 which is affected on the security vulnerability in the XML mapper you mentioned above. |
We'll deal with this in #6508 most likely by downgrading to Jackson 2.7 |
We've decided to downgrade to 2.7, see #6508 for updates. |
Elasticsearch 2.4 depends on Jackson 2.8.1. You should consider cancelling the downgrade. We are running Elasticsearch 2.4 with spring boot 1.4.0.RELEASE and Jackson 2.8.2 with no issue so far. |
@jloisel please create a separate issue for this. Thanks. |
As of 2.7, Jackson requires Java7. We also have report that it breaks with embedded elasticsearch (see #6508)
The text was updated successfully, but these errors were encountered: