Skip to content
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

Bump Jackson to 2.12.6.20220326 (CVE-2020-36518) #12411

Closed
wants to merge 3 commits into from

Conversation

jihoonson
Copy link
Contributor

@jihoonson jihoonson commented Apr 7, 2022

Description

Another attempt to address https://nvd.nist.gov/vuln/detail/CVE-2020-36518. This PR bumps Jackson to 2.12.6.20220326 which has the fix for the CVE (FasterXML/jackson-databind#2816). It seems not possible to upgrade Jackson to 2.13.2 with no change because of FasterXML/jackson-jaxrs-providers#134.


This PR has:

  • been self-reviewed.
  • added or updated version, license, or notice information in licenses.yaml

@jihoonson jihoonson changed the title Bump Jackson to 2.13.2 (CVE-2020-36518) Bump Jackson to 2.12.6.20220326 (CVE-2020-36518) Apr 7, 2022
@suneet-s suneet-s mentioned this pull request Apr 11, 2022
9 tasks
@@ -85,7 +85,7 @@ public void testKafkaEmitter() throws InterruptedException
final KafkaProducer<String, String> producer = mock(KafkaProducer.class);
final KafkaEmitter kafkaEmitter = new KafkaEmitter(
new KafkaEmitterConfig("", "metrics", "alerts", requestTopic, "test-cluster", null),
new ObjectMapper()
new DefaultObjectMapper()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any particular reason this change is required?

@xvrl
Copy link
Member

xvrl commented Apr 12, 2022

@jihoonson it looks like the changes you made to tests are due to FasterXML/jackson-databind#1852 Are there any other 2.11 or 2.12 behavior changes we might have to worry about?

@@ -58,9 +58,9 @@ public Object findInjectableValueId(AnnotatedMember m)
if (m instanceof AnnotatedMethod) {
throw new IAE("Annotated methods don't work very well yet...");
}
return Key.get(m.getGenericType());
return Key.get(m.getRawType());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change confuses me. The javadoc of getGenericType says that getType should be used to replace it. But according to the CI test result of #12373 , using of getType here seems that it does not work correctly.

Copy link

This pull request has been marked as stale due to 60 days of inactivity.
It will be closed in 4 weeks if no further activity occurs. If you think
that's incorrect or this pull request should instead be reviewed, please simply
write any comment. Even if closed, you can still revive the PR at any time or
discuss it on the [email protected] list.
Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 13, 2023
@xvrl
Copy link
Member

xvrl commented Dec 15, 2023

closing since this was addressed as part of #14770

@xvrl xvrl closed this Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants