Skip to content

Bump Jackson to 2.18.12, protobuf to 3.25.5, oauth-client to 1.33.3 - #1634

Open
deepika-lalwani123 wants to merge 3 commits into
developfrom
vuln/gc-3a-minor-jackson-protobuf-oauth
Open

deepika-lalwani123 wants to merge 3 commits into
developfrom
vuln/gc-3a-minor-jackson-protobuf-oauth

Conversation

@deepika-lalwani123

@deepika-lalwani123 deepika-lalwani123 commented Nov 17, 2026 •

Copy link
Copy Markdown

Bump Jackson to 2.18.12, protobuf to 3.25.5, oauth-client to 1.33.3

Stacked PR: this branch is built on top of #1632, #1633. Against develop the diff includes those commits; please review only the top commit 574800d5ab. Merge after #1633.

Repo: data-integrations/google-cloud
Branch: vuln/gc-3a-minor-jackson-protobuf-oauth → base develop (stacked)
Commit: 574800d
Part of the CVE fixes for the CDAP 6.11.2 patch release (container image scanning of gcr.io/cdapio/cdap).

The image scan of gcr.io/cdapio/cdap reports these top-level jars in
lib/ of google-cloud-0.25.0-SNAPSHOT.jar:

Jackson is now aligned with an imported jackson-bom, so the cbor module
that comes in through google-cloud-bigquery moves with core/databind.
protobuf-bom aligns protobuf-java-util (3.17.3) with protobuf-java.
No libraries-bom is imported here, so nothing brings a protobuf 4.x that
could be downgraded. google-oauth-client 1.33.3 is built against
google-http-client 1.41.x, so google-http-client-bom 1.41.8 is imported
to keep the whole google-http-client family (core, jackson2, gson,
apache-v2, appengine, protobuf) on one version instead of mixing
1.38.0 / 1.39.2 with 1.41.

Versions:

  • jackson-core 2.12.3, jackson-databind / jackson-annotations 2.13.4.x,
    jackson-dataformat-cbor 2.9.9 -> 2.18.12 (jackson.core.version, now
    also used for the jackson-bom import)
  • protobuf-java 3.19.4 -> 3.25.5 (google.protobuf.java.version);
    protobuf-java-util 3.17.3 -> 3.25.5 (protobuf-bom import)
  • google-oauth-client 1.31.2 -> 1.33.3 (managed, new
    google.oauth.client.version)
  • google-http-client* 1.38.0 / 1.39.2 -> 1.41.8 (google-http-client-bom
    import, new google.http.client.version)

The copies bundled inside bigtable-hbase-1.x-hadoop-1.17.1.jar
(jackson-core 2.11.1, protobuf 3.12.2, oauth-client 1.31.0) are handled
by #1636; the Jackson copy inside format-avro-2.13.0.jar is handled in
hydrator-plugins.

The jackson-dataformat-cbor finding is closed by this change alone.

Risk: medium. Minor-version jumps. Jackson 2.18 keeps the 2.x API but
has stricter defaults (e.g. StreamReadConstraints limits on very large
numbers / strings). protobuf 3.25 runtime is backward compatible with
code generated by older 3.x protoc (grpc 1.39 / gax).

Testing: JDK 8, Checkstyle on (0 violations).
mvn clean verify: 647 tests, 0 failures, 5 errors, 8 skipped; the 5
errors are the same cloud ITs as on develop (GCSConnectorTest x2,
SpannerConnectorTest x2, BigQueryConnectorTest: PERMISSION_DENIED on a
Linux workstation's ambient GCP project, no test credentials). BigQuery, GCS,
Spanner, Datastore, Pub/Sub, Dataplex unit tests pass.
mvn dependency:tree: jackson-* 2.18.12, protobuf-java /
protobuf-java-util 3.25.5, google-oauth-client 1.33.3,
google-http-client* 1.41.8 at compile scope; 2.12.3 / 2.13.4.2 / 2.9.9 /
3.19.4 / 1.31.2 are gone.
unzip -l target/google-cloud-0.25.0-SNAPSHOT.jar: lib/ has only the new
versions (jackson-core-2.18.12, jackson-databind-2.18.12,
jackson-dataformat-cbor-2.18.12, protobuf-java-3.25.5,
google-oauth-client-1.33.3, google-http-client-1.41.8).
Not run: e2e tests (need GCP credentials).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates several dependency versions in pom.xml, including upgrading Jackson, Protobuf, HTTP Client, and Snappy-Java. It also introduces BOMs for Jackson, Protobuf, and Google HTTP Client to align module versions, and adds exclusions for avro-ipc and avro-ipc-jetty from avro-mapred to prevent unused transitive dependencies. There are no review comments, and I have no feedback to provide.

@vishwasvaidya-cloudsufi vishwasvaidya-cloudsufi added the build Trigger unit test build label Nov 17, 2026
@vishwasvaidya-cloudsufi
vishwasvaidya-cloudsufi force-pushed the vuln/gc-3a-minor-jackson-protobuf-oauth branch from 574800d to 5ff9a74 Compare November 18, 2026 09:41
avro-mapred 1.11.4 pulls in avro-ipc and avro-ipc-jetty, which bring
velocity-engine-core 2.3 (shaded commons-io 2.8.0, CVE-2024-47554) and
org.tukaani:xz into lib/ of google-cloud-0.25.0-SNAPSHOT.jar, as seen in
the image scan of gcr.io/cdapio/cdap
(/opt/cdap/master/artifacts/google-cloud-*.jar/lib/velocity-engine-core-2.3.jar).

The plugins only use org.apache.avro.mapred.AvroKey and
org.apache.avro.mapreduce.* (BigQuery sink AvroOutputFormat /
AvroRecordWriter, Dataplex tests). Avro RPC and tether jobs, the only
users of avro-ipc, are not used. The Avro output codecs the plugins
allow are snappy and deflate (FileSetUtil), so dropping xz is safe.

Versions:
- org.apache.avro:avro-ipc 1.11.4 -> removed (exclusion on avro-mapred)
- org.apache.avro:avro-ipc-jetty 1.11.4 -> removed (exclusion on avro-mapred)
- velocity-engine-core 2.3 and xz 1.9 no longer packaged

Bugs: none closed alone. The other commons-io 2.8.0 copy (inside
format-avro-2.13.0.jar) is removed by hydrator-plugins HP-1.

Risk: very low. No plugin code path uses avro-ipc.

Testing: JDK 8, Checkstyle on (0 violations).
mvn clean verify: 647 tests, 0 failures, 5 errors, 8 skipped. The 5
errors are cloud ITs that pick up the Cloudtop's ambient GCP project and
fail with PERMISSION_DENIED (GCSConnectorTest x2, SpannerConnectorTest
x2, BigQueryConnectorTest); they fail the same way on develop. All other
unit tests pass, including AvroRecordWriterTest and
DataPlexOutputFormatProviderTest.
mvn dependency:tree: avro-mapred:1.11.4 has no children; avro-ipc,
avro-ipc-jetty, velocity-engine-core and xz are gone.
unzip -l target/google-cloud-0.25.0-SNAPSHOT.jar: lib/ has no avro-ipc*,
velocity-* or xz-* jar.
Patch-level alignment with the cross-track targets used by the
Platform CLs. No row of the current gcr.io/cdapio/cdap image scan points
at these top-level jars in google-cloud, but they are below the versions
used everywhere else and would re-open on the next scan:
snappy-java 1.1.10.5 is below the 1.1.10.12 target, and httpcore 4.4.14
(transitive) did not match httpclient. 4.5.14 / 4.4.16 are what
google-http-client-apache-v2 already uses, so nothing is downgraded.

Versions:
- org.xerial.snappy:snappy-java 1.1.10.5 -> 1.1.10.12 (direct dependency)
- org.apache.httpcomponents:httpclient 4.5.13 -> 4.5.14 (httpclient.version,
  now also in dependencyManagement)
- org.apache.httpcomponents:httpcore 4.4.14 -> 4.4.16 (new httpcore.version
  property, managed in dependencyManagement)

Bugs: none (no scanned rows; prevents a re-open).

Risk: very low. Same-line patch releases.

Testing: JDK 8, Checkstyle on (0 violations).
mvn clean verify: 647 tests, 0 failures, 5 errors, 8 skipped; the 5
errors are the same cloud ITs as on develop (GCSConnectorTest x2,
SpannerConnectorTest x2, BigQueryConnectorTest: PERMISSION_DENIED on the
Cloudtop's ambient GCP project, no test credentials).
mvn dependency:tree: snappy-java 1.1.10.12, httpclient 4.5.14 and
httpcore 4.4.16 at compile scope; no other version of them on the
runtime classpath (httpcore-nio 4.4.5 stays test-only via cdap-unit-test).
unzip -l target/google-cloud-0.25.0-SNAPSHOT.jar: lib/httpclient-4.5.14.jar,
lib/httpcore-4.4.16.jar, lib/snappy-java-1.1.10.12.jar.
The image scan of gcr.io/cdapio/cdap reports these top-level jars in
lib/ of google-cloud-0.25.0-SNAPSHOT.jar:
- jackson-core 2.12.3 (CVE-2025-49128, CVE-2025-52999, CVE-2026-68494,
  CVE-2026-89425), jackson-databind 2.13.4.2 (11 CVEs) and
  jackson-dataformat-cbor 2.9.9 (CVE-2020-28491)
- protobuf-java 3.19.4 (CVE-2022-3171, CVE-2022-3509, CVE-2022-3510,
  CVE-2024-7254)
- google-oauth-client 1.31.2 (CVE-2021-22573)

Jackson is now aligned with an imported jackson-bom, so the cbor module
that comes in through google-cloud-bigquery moves with core/databind.
protobuf-bom aligns protobuf-java-util (3.17.3) with protobuf-java.
No libraries-bom is imported here, so nothing brings a protobuf 4.x that
could be downgraded. google-oauth-client 1.33.3 is built against
google-http-client 1.41.x, so google-http-client-bom 1.41.8 is imported
to keep the whole google-http-client family (core, jackson2, gson,
apache-v2, appengine, protobuf) on one version instead of mixing
1.38.0 / 1.39.2 with 1.41.

Versions:
- jackson-core 2.12.3, jackson-databind / jackson-annotations 2.13.4.x,
  jackson-dataformat-cbor 2.9.9 -> 2.18.12 (jackson.core.version, now
  also used for the jackson-bom import)
- protobuf-java 3.19.4 -> 3.25.5 (google.protobuf.java.version);
  protobuf-java-util 3.17.3 -> 3.25.5 (protobuf-bom import)
- google-oauth-client 1.31.2 -> 1.33.3 (managed, new
  google.oauth.client.version)
- google-http-client* 1.38.0 / 1.39.2 -> 1.41.8 (google-http-client-bom
  import, new google.http.client.version)

The copies bundled inside bigtable-hbase-1.x-hadoop-1.17.1.jar
(jackson-core 2.11.1, protobuf 3.12.2, oauth-client 1.31.0) are handled
by GC-4; the Jackson copy inside format-avro-2.13.0.jar is handled in
hydrator-plugins.

Bugs: jackson-dataformat-cbor b/578686984 (closed by this change alone).

Risk: medium. Minor-version jumps. Jackson 2.18 keeps the 2.x API but
has stricter defaults (e.g. StreamReadConstraints limits on very large
numbers / strings). protobuf 3.25 runtime is backward compatible with
code generated by older 3.x protoc (grpc 1.39 / gax).

Testing: JDK 8, Checkstyle on (0 violations).
mvn clean verify: 647 tests, 0 failures, 5 errors, 8 skipped; the 5
errors are the same cloud ITs as on develop (GCSConnectorTest x2,
SpannerConnectorTest x2, BigQueryConnectorTest: PERMISSION_DENIED on the
Cloudtop's ambient GCP project, no test credentials). BigQuery, GCS,
Spanner, Datastore, Pub/Sub, Dataplex unit tests pass.
mvn dependency:tree: jackson-* 2.18.12, protobuf-java /
protobuf-java-util 3.25.5, google-oauth-client 1.33.3,
google-http-client* 1.41.8 at compile scope; 2.12.3 / 2.13.4.2 / 2.9.9 /
3.19.4 / 1.31.2 are gone.
unzip -l target/google-cloud-0.25.0-SNAPSHOT.jar: lib/ has only the new
versions (jackson-core-2.18.12, jackson-databind-2.18.12,
jackson-dataformat-cbor-2.18.12, protobuf-java-3.25.5,
google-oauth-client-1.33.3, google-http-client-1.41.8).
Not run: e2e tests (need GCP credentials).
@vishwasvaidya-cloudsufi
vishwasvaidya-cloudsufi force-pushed the vuln/gc-3a-minor-jackson-protobuf-oauth branch from 5ff9a74 to aee054c Compare November 19, 2026 09:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Trigger unit test build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants