Skip to content

chore(deps): upgrade to jackson 2.18.8 - #6152

Merged
Yicong-Huang merged 2 commits into
apache:mainfrom
pjfanning:jackson
Jul 5, 2026
Merged

Yicong-Huang merged 2 commits into
apache:mainfrom
pjfanning:jackson

Conversation

@pjfanning

@pjfanning pjfanning commented Jul 5, 2026 •

Copy link
Copy Markdown
Member

What changes were proposed in this PR?

Bump Jackson from 2.18.6 to 2.18.8: jacksonVersion in the root build.sbt (shared by all sbt modules) plus the corresponding jar entries in each service's LICENSE-binary.

Motivation is security: seven jackson-databind CVEs were disclosed on 2026-06-22, all fixed in 2.18.8 (CVE-2026-54512 through CVE-2026-54518). The two most severe are PolymorphicTypeValidator allowlist bypasses that allow arbitrary class instantiation when polymorphic deserialization is enabled:

CVE Issue
CVE-2026-54512 PTV bypass via generic type parameters (e.g. ArrayList<com.evil.Gadget> passes when only ArrayList is allow-listed)
CVE-2026-54513 PTV bypass via allowIfSubTypeIsArray() — array types approved without validating the component type
CVE-2026-54514 … 54518 Additional jackson-databind hardening fixes in the same batch

Note: Dependabot does not scan sbt builds, so there are no repo Dependabot alerts to link for these.

Jackson 2.18.8 jars also ship updated META-INF NOTICE content, so the seven */NOTICE-binary files need regeneration (bin/licensing/generate_notice_binary.py) to pass the binary-licensing CI check.

Any related issues, documentation, discussions?

Advisory batch write-up: 7 new vulnerabilities in Jackson in one day

How was this PR tested?

Existing test cases via the label-gated CI stacks (engine, platform, common); no code change, dependency bump only. The binary licensing check additionally verifies LICENSE-binary/NOTICE-binary against the built distributables.

Was this PR authored or co-authored using generative AI tooling?

The dependency bump was authored by @pjfanning (no AI declaration). This PR description and the NOTICE-binary regeneration were prepared with generative AI tooling: Generated-by: Claude Code (Claude Fable 5).

@github-actions github-actions Bot added engine dependencies Pull requests that update a dependency file common platform Non-amber Scala service paths labels Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @bobbai00, @Yicong-Huang, @Ma77Ball
    You can notify them by mentioning @bobbai00, @Yicong-Huang, @Ma77Ball in a comment.

@codecov-commenter

codecov-commenter commented Jul 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.84%. Comparing base (95684eb) to head (0cba832).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6152      +/-   ##
============================================
+ Coverage     59.79%   59.84%   +0.05%     
- Complexity     3295     3303       +8     
============================================
  Files          1131     1131              
  Lines         43770    43770              
  Branches       4745     4745              
============================================
+ Hits          26172    26195      +23     
+ Misses        16171    16154      -17     
+ Partials       1427     1421       -6     
Flag Coverage Δ *Carryforward flag
access-control-service 70.00% <ø> (ø)
agent-service 44.59% <ø> (ø) Carriedforward from 3c43838
amber 64.92% <ø> (+0.13%) ⬆️
computing-unit-managing-service 0.00% <ø> (ø)
config-service 52.30% <ø> (ø)
file-service 62.81% <ø> (ø)
frontend 51.45% <ø> (ø) Carriedforward from 3c43838
notebook-migration-service 78.57% <ø> (ø)
pyamber 91.18% <ø> (ø) Carriedforward from 3c43838
workflow-compiling-service 55.14% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 2 better · 🔴 6 worse · ⚪ 7 noise (<±5%) · 0 without baseline

Compared against main 95684eb benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 375 0.229 24,592/37,053/37,053 us 🔴 -12.0% / 🔴 +144.7%
🔴 bs=100 sw=10 sl=64 824 0.503 121,888/135,381/135,381 us 🟢 -26.2% / 🔴 +25.4%
⚪ bs=1000 sw=10 sl=64 955 0.583 1,045,322/1,074,719/1,074,719 us ⚪ within ±5% / 🔴 -6.0%
Baseline details

Latest main 95684eb from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 375 tuples/sec 426 tuples/sec 776.36 tuples/sec -12.0% -51.7%
bs=10 sw=10 sl=64 MB/s 0.229 MB/s 0.26 MB/s 0.474 MB/s -11.9% -51.7%
bs=10 sw=10 sl=64 p50 24,592 us 23,068 us 12,636 us +6.6% +94.6%
bs=10 sw=10 sl=64 p95 37,053 us 34,762 us 15,143 us +6.6% +144.7%
bs=10 sw=10 sl=64 p99 37,053 us 34,762 us 18,954 us +6.6% +95.5%
bs=100 sw=10 sl=64 throughput 824 tuples/sec 832 tuples/sec 985.33 tuples/sec -1.0% -16.4%
bs=100 sw=10 sl=64 MB/s 0.503 MB/s 0.508 MB/s 0.601 MB/s -1.0% -16.4%
bs=100 sw=10 sl=64 p50 121,888 us 115,503 us 101,671 us +5.5% +19.9%
bs=100 sw=10 sl=64 p95 135,381 us 183,364 us 107,939 us -26.2% +25.4%
bs=100 sw=10 sl=64 p99 135,381 us 183,364 us 113,798 us -26.2% +19.0%
bs=1000 sw=10 sl=64 throughput 955 tuples/sec 953 tuples/sec 1,016 tuples/sec +0.2% -6.0%
bs=1000 sw=10 sl=64 MB/s 0.583 MB/s 0.581 MB/s 0.62 MB/s +0.3% -6.0%
bs=1000 sw=10 sl=64 p50 1,045,322 us 1,050,817 us 989,693 us -0.5% +5.6%
bs=1000 sw=10 sl=64 p95 1,074,719 us 1,092,014 us 1,028,327 us -1.6% +4.5%
bs=1000 sw=10 sl=64 p99 1,074,719 us 1,092,014 us 1,059,969 us -1.6% +1.4%
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,532.94,200,128000,375,0.229,24592.37,37052.67,37052.67
1,100,10,64,20,2425.91,2000,1280000,824,0.503,121888.33,135380.57,135380.57
2,1000,10,64,20,20950.31,20000,12800000,955,0.583,1045321.98,1074718.58,1074718.58

@pjfanning

Copy link
Copy Markdown
Member Author

@Yicong-Huang Would someone in Texera team be able to take this on? It looks like your build blows up over some issue with the license text. But it is important to uptake new dependency releases to avoid security issues.

@Yicong-Huang

Copy link
Copy Markdown
Contributor

@pjfanning We will take it over. Thanks for helping!

@Yicong-Huang Yicong-Huang added release/v1.2 back porting to release/v1.2 and removed release/v1.2 back porting to release/v1.2 labels Jul 5, 2026
Jackson 2.18.8 jars ship updated META-INF NOTICE content, so the
generated NOTICE-binary files move and reword the Jackson section.
Applied from the CI generator diff for all seven affected modules.

Co-Authored-By: Claude Fable 5 <[email protected]>
@Yicong-Huang

Copy link
Copy Markdown
Contributor

Pushed 0cba832 to this branch (maintainer edit): the build / amber and build / platform (*) failures were the binary-licensing check — Jackson 2.18.8 jars ship updated META-INF NOTICE content, so the seven */NOTICE-binary files needed regeneration with bin/licensing/generate_notice_binary.py. Applied the generator output from the CI diff.

The backport (release/v1.2) jobs fail for an unrelated reason: this PR touches notebook-migration-service/, which does not exist on release/v1.2, so the validation cherry-pick hits a modify/delete conflict. That check cannot pass for this PR as-is; the options are dropping the release/v1.2 label (backport manually after merge, minus that module) or leaving it red until then.

@Yicong-Huang
Yicong-Huang added this pull request to the merge queue Jul 5, 2026
Merged via the queue into apache:main with commit 6c86de5 Jul 5, 2026
23 checks passed
Yicong-Huang added a commit that referenced this pull request Jul 5, 2026
### What changes were proposed in this PR?

Backport of #6152 to `release/v1.2`: bump Jackson 2.18.6 → 2.18.8
(`jacksonVersion` in the root `build.sbt`), update the jar entries in
each service's `LICENSE-binary`, and regenerate the `NOTICE-binary`
files for the updated `META-INF` NOTICE content shipped in the 2.18.8
jars.

Motivation is security: seven jackson-databind CVEs disclosed on
2026-06-22 (CVE-2026-54512 … 54518) are all fixed in 2.18.8, including
two PolymorphicTypeValidator allowlist bypasses that allow arbitrary
class instantiation when polymorphic deserialization is enabled
([CVE-2026-54512](GHSA-j3rv-43j4-c7qm),
[CVE-2026-54513](https://nvd.nist.gov/vuln/detail/CVE-2026-54513)). See
#6152 for details.

Differences from the mainline PR: the `notebook-migration-service/`
changes are dropped — that module does not exist on `release/v1.2` (this
is why the label-driven backport check on #6152 could not pass).

### Any related issues, documentation, discussions?

Backport of #6152.

### How was this PR tested?

Existing test cases via the label-gated CI stacks; dependency bump only,
no code change. The binary licensing check verifies
LICENSE-binary/NOTICE-binary against the built distributables.

### Was this PR authored or co-authored using generative AI tooling?

The original dependency bump was authored by @pjfanning (no AI
declaration). The cherry-pick, NOTICE-binary regeneration, and this
description were prepared with generative AI tooling: Generated-by:
Claude Code (Claude Fable 5).

---------

Co-authored-by: PJ Fanning <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
@chenlica

chenlica commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

@pjfanning Thank you for your help!

@pjfanning
pjfanning deleted the jackson branch July 5, 2026 20:02
sshiv012 pushed a commit to sshiv012/texera that referenced this pull request Jul 6, 2026
### What changes were proposed in this PR?

Add `.github/workflows/dependency-graph.yml`: on every push to `main`,
resolve the sbt build and submit the full dependency graph (all modules,
transitive dependencies included) to GitHub via the Dependency
Submission API, using
[scalacenter/sbt-dependency-submission](https://github.com/scalacenter/sbt-dependency-submission).

GitHub cannot parse `build.sbt`, so today Dependabot alerts cover only
the npm/pip manifests and Scala dependencies are invisible — the
jackson-databind CVE batch fixed in apache#6152 never appeared in the security
tab and was caught by hand. With the graph submitted, Scala dependencies
(Jackson, Pekko, …) get Dependabot alerts like npm/pip. Alerts only — no
automatic PRs (Dependabot security updates do not support sbt).

Notes for review:

- The third-party actions are pinned to full commit SHAs per the [ASF
GitHub Actions
policy](https://infra.apache.org/github-actions-policy.html);
`sbt/setup-sbt` and `coursier/cache-action` reuse the exact pins already
used elsewhere in this repo. The same submission action (same SHA) is
used by apache/pekko and 7 other ASF repos.
- `configs-ignore` drops test/provided/optional/tooling scopes so alerts
reflect what ships.
- The job is guarded with `if: github.repository == 'apache/texera'` and
only triggers on push to `main`, so it never runs on forks or PRs.

### Any related issues, documentation, discussions?

Closes apache#6162

### How was this PR tested?

The workflow itself only runs post-merge on `apache/texera` `main` (see
guard above), so it cannot be exercised by PR CI. Verified locally by
running the underlying sbt plugin against this build:

```
sbt --addPluginSbtFile=<plugin.sbt> \
  'githubGenerateSnapshot {"ignoredConfigs":["provided","optional","test","compile-internal","runtime-internal","scala-tool","scala-doc-tool"]}'
```

completes with `[success]` and writes a snapshot containing 577 resolved
packages across all modules, including
`com.fasterxml.jackson.core:jackson-databind:2.18.8` and
`org.apache.pekko:pekko-actor_2.13:1.6.0`. (It also surfaces a stale
transitive `jackson-databind:2.12.3` in the tree — exactly the kind of
finding this graph will make visible as an alert.)

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Fable 5)

Co-authored-by: Claude Fable 5 <[email protected]>
sshiv012 pushed a commit to sshiv012/texera that referenced this pull request Jul 6, 2026
### What changes were proposed in this PR?

Add `.github/dependabot.yml` to enable weekly Dependabot **version
updates** — the complementary half of apache#6163 (which feeds security
*alerts*): alerts flag vulnerable dependencies, version updates keep
dependencies current so alerts rarely fire.

| Ecosystem | Directory | Notes |
| --- | --- | --- |
| `sbt` | `/` (root build, all modules) | New Dependabot ecosystem
(beta, 2026-05); first use in the ASF org |
| `npm` | `/frontend`, `/pyright-language-service` | Angular majors
ignored — they need a guided `ng update` migration with framework/CLI
lines moving together (see apache#6155) |
| `bun` | `/agent-service` | agent-service is a Bun project (`bun.lock`)
|
| `npm` | `/bin/y-websocket-server` | Single-dependency utility, no
lockfile |
| `pip` | `/amber` | Covers `pyproject.toml` and all
`*requirements*.txt` in the directory (`requirements`,
`operator-requirements`, `dev-requirements`) — same detection the
dependency graph already uses for alerts |
| `github-actions` | `/` | Commit prefix `ci` per repo convention |

Noise control: **weekly** schedule, **patch bumps grouped into a single
PR per ecosystem** (bug-fix only, low risk); **minor and major bumps
come as individual PRs** — a failed group PR cannot be bisected by the
bot, so anything that can carry behavior changes passes or fails CI on
its own. ≤5 open PRs per ecosystem bounds the volume. (github-actions
stays fully grouped: SHA/tag bumps, ci-only blast radius.)

Commit/PR-title prefixes are split by dependency semantics (and
AGENTS.md is updated to record the convention): runtime/production bumps
get `fix(deps, <module>)` — they ship to users — while dev/toolchain
bumps get `chore(deps, <module>)` via `prefix-development` (npm
devDependencies, pip `dev-requirements.txt`, bun devDependencies), with
the module as second scope per the repo convention (`pyamber`,
`frontend`, `agent-service`, …; the cross-module sbt entry stays plain
`fix(deps)`); GitHub Actions bumps use `ci`. All types pass the PR title
check. 267 ASF repos already use `dependabot.yml`.

Notes for review:

- Local schema validation passes except the `sbt` enum value —
schemastore still lags the 2026-05 beta; GitHub's changelog ([Dependabot
version updates now support the sbt
ecosystem](https://github.blog/changelog/2026-05-26-dependabot-version-updates-now-support-the-sbt-ecosystem/))
is authoritative for the key. After merge, any config error would
surface under Insights → Dependency graph → Dependabot.
- The sbt ecosystem is beta: it may not follow every `build.sbt` pattern
(e.g. version `val`s), so missed sbt updates are expected at first, not
misconfiguration.
- `.asf.yaml`'s `dependabot_updates` (automatic security-*fix* PRs) is
deliberately left `false` to avoid a burst of bot PRs for the existing
alert backlog while apache#6152/apache#6155 are in flight; it can be flipped
separately later.

### Any related issues, documentation, discussions?

Closes apache#6164. Related: apache#6162 / apache#6163 (sbt dependency graph for alerts).

### How was this PR tested?

Config-only change; Dependabot runs server-side after merge, so it
cannot be exercised by PR CI. Validated locally:

- `yaml.safe_load` parses the file.
- `check-jsonschema --builtin-schema vendor.dependabot` passes for all
entries except the not-yet-in-schema `sbt` ecosystem value (see note
above).

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Fable 5)

---------

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common dependencies Pull requests that update a dependency file engine platform Non-amber Scala service paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants