Skip to content

fix(security): bump jetty to 12.1.12 - #33450

Closed
karanh37 wants to merge 1 commit into
mainfrom
security/jetty-12.1.12-redo
Closed

karanh37 wants to merge 1 commit into
mainfrom
security/jetty-12.1.12-redo

Conversation

@karanh37

Copy link
Copy Markdown
Contributor

Advisory

Two high-severity Snyk findings against origin/main:

Advisory Package Installed Fixed in
HTTP Request Smuggling org.eclipse.jetty:jetty-http 12.1.10 12.0.38 / 12.1.12
Allocation of Resources Without Limits or Throttling org.eclipse.jetty.websocket:jetty-websocket-core-common 12.1.10 12.0.38 / 12.1.12

Raw scanner finding

From server-dep-scan.json (scan run 35167433334):

high  org.eclipse.jetty:[email protected]                          HTTP Request Smuggling
      fixedIn=["12.0.38","12.1.12"]
high  org.eclipse.jetty.websocket:[email protected]
      Allocation of Resources Without Limits or Throttling
      fixedIn=["12.0.38","12.1.12"]

Note the daily Slack digest renders only fixedIn[0], so it reads "fix: 12.0.38" — a version below
the installed one. That is a rendering artifact; the advisory is a coherent multi-branch one and our
branch's fix is 12.1.12.

Root cause

The root pom.xml:187 already sets <jetty.version>12.1.12</jetty.version>. But
openmetadata-service/pom.xml:28 and openmetadata-mcp/pom.xml:20 each re-declared
<jetty.version>12.1.10</jetty.version> in their own <properties>, which wins over the inherited
value. Both modules import jetty-bom at ${jetty.version}, so the whole Jetty stack in those two
modules stayed on the vulnerable line while the root property said otherwise.

This PR deletes the two stale child overrides. No version is introduced; both modules simply inherit
the root's already-patched 12.1.12.

What I verified

  • Property resolution, per module, with the effective POM:
    mvn -pl openmetadata-service org.apache.maven.plugins:maven-help-plugin:3.5.0:evaluate \
        -Dexpression=jetty.version -DforceStdout   ->  12.1.12
    mvn -pl openmetadata-mcp     ... same goal                              ->  12.1.12
    
  • The two flagged artifacts actually resolve at the patched version:
    mvn -pl openmetadata-service dependency:tree -Dincludes='org.eclipse.jetty:jetty-http:*'
      \- org.eclipse.jetty:jetty-http:jar:12.1.12:compile
    
    mvn -pl openmetadata-service,openmetadata-mcp dependency:tree \
        -Dincludes='org.eclipse.jetty.websocket:jetty-websocket-core-common:*'
      openmetadata-service  \- ...:jetty-websocket-core-common:jar:12.1.12:compile
      openmetadata-mcp      \- ...:jetty-websocket-core-common:jar:12.1.12:compile
    
    Both resolutions returned BUILD SUCCESS, so every Jetty coordinate in those modules is satisfiable
    at 12.1.12 from the configured repositories.
  • Same fix as the earlier #33265, which
    gitar-bot reviewed and approved. That PR was closed unmerged on 2026-09-16 and the finding
    returned in today's scan, so it is re-raised here rather than left unowned.

Manifests touched

  • openmetadata-service/pom.xml (−1 line)
  • openmetadata-mcp/pom.xml (−1 line)

2 files, 0 insertions, 2 deletions.

What I did NOT test

  • No build. mvn package/mvn test was not run on either module. Only dependency resolution was
    exercised, which proves the coordinates exist and converge — not that the code compiles or the tests
    pass against 12.1.12.
  • No runtime check. The service was not started; no HTTP or WebSocket request was served.
  • No rescan. "Clears 2 highs" is inferred from the version comparison, not observed from Snyk
    against a rebuilt artifact.
  • No API-surface review. 12.1.10 -> 12.1.12 is a patch bump inside the same minor line, so no
    source change was expected or made, but I did not diff Jetty's own API between those two tags.
  • No exploitability assessment of either CVE against our request paths.

Note for the maintainer

#33290 and
#33291 were both auto-closed by the
pr-metadata-check gate with "No GitHub issue is linked" — not on technical merit (both were
bot-approved). This PR has the same gap: it needs a linked issue in the Shipping project before it
can merge. I did not open one, since the project fields need a human.

🤖 Generated with Claude Code

The root pom already sets jetty.version to 12.1.12, but openmetadata-service
and openmetadata-mcp each re-declared the property at 12.1.10, so both modules
resolved jetty-http and jetty-websocket-core-common at the vulnerable version.
Remove the stale child overrides so both modules inherit the patched line.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 17, 2026
@gitar-bot

gitar-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Removes stale Jetty version overrides in openmetadata-service/pom.xml and openmetadata-mcp/pom.xml to resolve two high-severity vulnerabilities (HTTP Request Smuggling and Resource Allocation Without Limits) by inheriting the patched 12.1.12 version from the root POM. Dependency resolution verified for both affected modules. No issues found.

Review coverage

Rules No rules evaluated

Functional validation Not enabled · Set up

Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

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

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant