Skip to content

fix(security): pin httpcore5 (core) to 5.4.3 for CVE-2026-54399 - #31442

Merged
sonika-shah merged 1 commit into
open-metadata:mainfrom
sonika-shah:fix/httpcore5-core-cve-2026-54399
Aug 13, 2026
Merged

sonika-shah merged 1 commit into
open-metadata:mainfrom
sonika-shah:fix/httpcore5-core-cve-2026-54399

Conversation

@sonika-shah

Copy link
Copy Markdown
Collaborator

What

Adds a dependencyManagement pin for org.apache.httpcomponents.core5:httpcore5 → 5.4.3, alongside the existing httpcore5-h2 pin.

Why

CVE-2026-54399 — Uncontrolled Resource Consumption (DoS) in the HTTP/1.1 message parser of Apache HttpComponents Core (5.4.2 and earlier).

The existing security pin only covers httpcore5-h2 (the HTTP/2 protocol module). The vulnerable parser lives in the httpcore5 core artifact, which was unmanaged and resolved transitively to 5.3.x — both as a standalone jar on the service classpath and shaded into the elasticsearch-deps uber-jar (via elasticsearch-java → Apache HTTP transport; those classes are shaded but not relocated, so a scanner reads the bundled pom.properties).

Because the elasticsearch-dep shade module inherits this dependencyManagement from the root platform pom, pinning core5 here forces 5.4.3 to be resolved at shade time — fixing the bundled copy as well as the standalone one.

Why 5.4.3 (not 5.5-beta2)

The CVE affected range is 5.4.2 and earlier, so 5.4.3 is the fix on the stable line — the same line the httpcore5-h2 pin already sits on. No need to move a production dependency onto the 5.5-beta2 pre-release.

Verification

  • httpcore5:5.4.3 (core) confirmed present on Maven Central.

The existing security pin covered only httpcore5-h2. The vulnerable
HTTP/1.1 message parser (CVE-2026-54399, uncontrolled resource
consumption / DoS) lives in the httpcore5 core artifact, which was
unmanaged and resolved transitively to 5.3.x (both standalone and
shaded into the elasticsearch-deps uber-jar). Pin core5 to 5.4.3,
matching the httpcore5-h2 line already pinned.
Copilot AI lite review requested due to automatic review settings August 13, 2026 05:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Aug 13, 2026
@gitar-bot

gitar-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Pins the httpcore5 dependency to 5.4.3 via dependencyManagement to address CVE-2026-54399 in the HTTP/1.1 message parser. No issues found.

Options

Display: compact → Showing less information.

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

@sonika-shah
sonika-shah enabled auto-merge August 13, 2026 05:37
@sonika-shah
sonika-shah added this pull request to the merge queue Aug 13, 2026
Merged via the queue into open-metadata:main with commit 6fe49b9 Aug 13, 2026
99 of 100 checks passed
@sonika-shah
sonika-shah deleted the fix/httpcore5-core-cve-2026-54399 branch August 13, 2026 11:53
sonika-shah pushed a commit that referenced this pull request Aug 14, 2026
… backport) (#31513)

Backport of #31442 to 1.13.

CVE-2026-54399 (uncontrolled resource consumption / DoS via excessive
headers or header length) affects httpcore5 <= 5.4.2 and
5.5-alpha..5.5-beta1. The HTTP/1.1 message parser lives in the core
artifact, which was unmanaged and resolved transitively to 5.3.x —
5.3.5 via calcite-core -> avatica-core -> httpclient5 5.5, and 5.3.4
shaded into elasticsearch-deps / opensearch-deps via
elasticsearch-java / opensearch-java's httpclient5 chain.

Pin core5 to 5.4.3 and also bump httpcore5-h2 5.3.5 -> 5.4.3 to keep
both artifacts on the same line (main was already on h2 5.4.3, so
#31442 only needed to add core; 1.13 needs both).

Verified via mvn dependency:tree on 1.13 with the pin applied:
- elasticsearch-deps: httpcore5 5.4.3, httpcore5-h2 5.4.3
- opensearch-deps:    httpcore5 5.4.3, httpcore5-h2 5.4.3
- openmetadata-service (calcite path): httpcore5 5.4.3, httpcore5-h2 5.4.3

This branch was previously deployed

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

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants