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

Override Jackson Databind dependency to 2.9.9 #1777

Merged
merged 2 commits into from
Jun 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ object Dependencies {

val JwtCoreVersion = "3.0.1"

// Releases https://github.com/FasterXML/jackson-databind/releases
// CVE issues https://github.com/FasterXML/jackson-databind/issues?utf8=%E2%9C%93&q=+label%3ACVE
val JacksonDatabindVersion = "2.9.9"

// Allows to silence scalac compilation warnings selectively by code block or file path
// This is only compile time dependency, therefore it does not affect the generated bytecode
// https://github.com/ghik/silencer
Expand Down Expand Up @@ -57,8 +61,8 @@ object Dependencies {
val AwsLambda = Seq(
libraryDependencies ++= Seq(
"software.amazon.awssdk" % "lambda" % AwsSdk2Version, // ApacheV2
// overriding AWS SDK version to avoid https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12086
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.9",
// overriding AWS SDK version to avoid security issues
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonDatabindVersion,
"org.mockito" % "mockito-core" % mockitoVersion % Test // MIT
)
)
Expand Down Expand Up @@ -129,7 +133,7 @@ object Dependencies {
libraryDependencies ++= Seq(
"org.elasticsearch.client" % "elasticsearch-rest-client" % "6.3.1", // ApacheV2
"io.spray" %% "spray-json" % "1.3.5", // ApacheV2
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.9", // ApacheV2
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonDatabindVersion, // ApacheV2
"org.codelibs" % "elasticsearch-cluster-runner" % "6.3.1.0" % Test, // ApacheV2
"org.slf4j" % "jcl-over-slf4j" % "1.7.25" % Test
)
Expand Down Expand Up @@ -169,6 +173,8 @@ object Dependencies {
.map("org.apache.geode" % _ % GeodeVersion exclude ("org.slf4j", "slf4j-log4j12")) ++
Seq(
"com.chuusai" %% "shapeless" % "2.3.3",
// overriding version from geode to avoid some security vulnerabilities
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonDatabindVersion,
"org.slf4j" % "log4j-over-slf4j" % slf4jVersion % Test // MIT like: http://www.slf4j.org/license.html
)
)
Expand Down Expand Up @@ -265,7 +271,9 @@ object Dependencies {
val JsonStreaming = Seq(
libraryDependencies ++= Seq(
"com.github.jsurfer" % "jsurfer" % "1.4.3", // MIT,
"com.github.jsurfer" % "jsurfer-jackson" % "1.4.3" // MIT
"com.github.jsurfer" % "jsurfer-jackson" % "1.4.3", // MIT
// overriding version from jsurfer-jackson to avoid some security vulnerabilities
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonDatabindVersion
)
)

Expand Down Expand Up @@ -364,8 +372,8 @@ object Dependencies {
ExclusionRule("software.amazon.awssdk", "apache-client"),
ExclusionRule("software.amazon.awssdk", "netty-nio-client")
),
// overriding AWS SDK version to avoid https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12086
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.9",
// overriding AWS SDK version to avoid security issues
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonDatabindVersion,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion, // ApacheV2
"org.mockito" % "mockito-core" % mockitoVersion % Test // MIT
)
Expand Down Expand Up @@ -397,8 +405,8 @@ object Dependencies {
ExclusionRule("software.amazon.awssdk", "apache-client"),
ExclusionRule("software.amazon.awssdk", "netty-nio-client")
),
// overriding AWS SDK version to avoid https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12086
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.9",
// overriding AWS SDK version to avoid security issues
"com.fasterxml.jackson.core" % "jackson-databind" % JacksonDatabindVersion,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion, // ApacheV2
"org.mockito" % "mockito-core" % mockitoVersion % Test, // MIT
"org.mockito" % "mockito-inline" % mockitoVersion % Test // MIT
Expand Down