Skip to content

[9.4](backport #54234) Update Brotli and Heartbeat CI Node.js for CVE-2026-111497 - #54609

Merged
macdewee merged 2 commits into
9.4from
mergify/bp/9.4/pr-54234
Nov 10, 2026
Merged

macdewee merged 2 commits into
9.4from
mergify/bp/9.4/pr-54234

Conversation

@mergify

@mergify mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Proposed commit message

Update Brotli and Heartbeat CI Node.js versions for CVE-2026-111497.

Upgrade github.com/andybalholm/brotli from 1.2.2 to 1.2.7 and update its checksums. The Go implementation contains the same malformed-input decoder bug, with a potential panic and denial of service rather than native memory corruption.

Update the remaining Heartbeat CI Node.js pins from 22.20.0 to the patched 22.23.4 release:

  • .buildkite/heartbeat/heartbeat-pipeline.yml
  • .buildkite/x-pack/pipeline.xpack.heartbeat.yml
  • .github/workflows/xpack-heartbeat-macos-unit-tests.yml

Add a security changelog entry for the Brotli update.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas — Dependency and CI version changes only.
  • I have made corresponding changes to the documentation — No usage changes requiring documentation.
  • I have made corresponding change to the default configuration files — Not applicable.
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability. — Existing dependency and integration tests were used to validate these version changes.
  • I have added an entry in ./changelog/fragments using the changelog tool.

Disruptive User Impact

No configuration migration is required. The affected CI jobs will install Node.js 22.23.4.

How to test this PR locally

go mod tidy -diff
go test -count=1 github.com/andybalholm/brotli
go test -count=1 -race github.com/apache/arrow-go/v18/parquet/compress
go test -count=1 -race -timeout=90s -run '^TestParquetWithFiles$' ./x-pack/libbeat/reader/parquet

These checks passed, including Arrow's Brotli round-trip and malformed-input tests.

Filebeat's mage check also passed using a Python 3.11 virtual environment. The existing pinned formatter alters f-strings incorrectly under Python 3.12.

The three CI YAML files were parsed and their Node.js version pins verified.

Related issues

Use cases

Prevent malformed Brotli input from triggering the Go decoder panic and use a patched Node.js runtime in the affected Heartbeat CI jobs.

Screenshots

Not applicable.

Logs

Brotli's own race-enabled suite reported:

--- FAIL: TestDecoderStreaming (0.00s)
    testing.go:1712: race detected during execution of test

The same race reproduced with the previous 1.2.2 dependency version.

The full randomized Parquet race run was stopped after approximately seven minutes. The focused Parquet fixture and Arrow codec race suites passed.


This is an automatic backport of pull request #54234 done by Mergify.

* Update Brotli for CVE-2026-111497

Upgrade github.com/andybalholm/brotli to 1.2.7 to address the malformed-input decoder panic described in GHSA-c9gr-gmg4-2vqv.

* Regenerate NOTICE for the Brotli dependency update

Record Brotli v1.2.7 in the generated dependency notices so the notice check matches the updated Go module.

Assisted-By: Codex

---------

Co-authored-by: Dominik Rosiek <6997361+macdewee@users.noreply.github.com>
(cherry picked from commit 81f8463)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
@mergify
mergify Bot requested a review from a team as a code owner November 10, 2026 07:24
@mergify mergify Bot added backport conflicts There is a conflict in the backported pull request labels Nov 10, 2026
@mergify

mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 81f8463 has failed:

On branch mergify/bp/9.4/pr-54234
Your branch is up to date with 'origin/9.4'.

You are currently cherry-picking commit 81f8463.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   changelog/fragments/1793295453-update-brotli-to-1.2.7-to-fix-malformed-input-decoding.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   NOTICE.txt
	both modified:   go.mod
	both modified:   go.sum

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 10, 2026
@botelastic

botelastic Bot commented Nov 10, 2026

Copy link
Copy Markdown

This pull request doesn't have a Team:<team> label.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • /test : Run the Buildkite pipeline.

@macdewee macdewee self-assigned this Nov 10, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR updates github.com/andybalholm/brotli from v1.2.0 to v1.2.7 (Go indirect dependency) for CVE-2026-111497/GHSA-c9gr-gmg4-2vqv; dependency risk is low, but the PR is currently not merge-ready due to unresolved conflict markers in dependency files.

Dependency 1: github.com/andybalholm/brotli v1.2.0 → v1.2.7

Ecosystem: Go

Check Result
Breaking changes ✅ None found for current repo usage; this is an indirect patch-level bump (go.mod:325-327).
Testable in PR ⚠️ No — unresolved merge conflicts in go.mod, go.sum, and NOTICE.txt prevent reliable PR validation in current state.
Changelog highlights (v1.2.0 → v1.2.7)
  • Upstream GitHub Releases for andybalholm/brotli are unavailable via tag lookup/listing, so detailed release-note bodies were not available from MCP.
  • Local metadata confirms security intent:
    • Commit message: "Upgrade github.com/andybalholm/brotli to 1.2.7 to address the malformed-input decoder panic described in GHSA-c9gr-gmg4-2vqv."
    • Changelog fragment: changelog/fragments/1793295453-update-brotli-to-1.2.7-to-fix-malformed-input-decoding.yaml:1-4.
  • CVE/security assessment for this repo: moving to v1.2.7 reduces risk of malformed-input decoder panic (DoS class) in transitive Brotli decode paths.
Usage in this repository
  • github.com/andybalholm/brotli is indirect in go.mod.
  • No direct brotli imports were found in Go source.
  • Relevant consuming path is via Apache Arrow/Parquet usage:
    • x-pack/libbeat/reader/parquet/parquet.go:13-16
    • x-pack/libbeat/reader/parquet/parquet_test.go:17-20
Compatibility assessment
  • Patch-level Go module bump (v1.2.0 → v1.2.7) with no import-path changes; no direct API adoption in this repo.
  • No evidence of required config/default changes affecting local usage.
  • Blocking issue: unresolved conflict markers exist in dependency-related files:
    • go.mod:322-328
    • go.sum:185-195
    • NOTICE.txt:43041-43053
      These must be resolved before merge and before a trustworthy CI signal can be used for final risk confirmation.

Labels Applied

No labels applied (merge-ready criteria not met while conflict markers remain in dependency files).


What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@github-actions

Copy link
Copy Markdown
Contributor

TL;DR

Buildkite failed because the backport branch contains unresolved merge-conflict markers in go.mod and go.sum, so all check/update and pre-commit jobs fail early. Resolve those conflicts and rerun CI.

Remediation

  • Resolve conflict markers in go.mod and go.sum on mergify/bp/9.4/pr-54234 (especially around go.mod:322-328 and go.sum:185-195 from CI logs), keeping the intended dependency updates.
  • Re-run pre-commit run --all-files and a representative check (for example make -C filebeat check update) before triggering full Buildkite.
Investigation details

Root Cause

This is a configuration/source-control conflict issue, not a flaky test. CI detects unresolved conflict markers (<<<<<<<, =======, >>>>>>>) in dependency files used by all pipelines.

Evidence

  • Build: https://buildkite.com/elastic/beats/builds/56039
  • Job/step: Filebeat: Run pre-commit and Filebeat: Run check/update (same failure pattern across all 34 failed jobs)
  • Key log excerpts:
    • go.sum:185: Merge conflict string '<<<<<<<' found
    • go.sum:190: Merge conflict string '=======' found
    • go.sum:195: Merge conflict string '>>>>>>>' found
    • go.mod:322: Merge conflict string '<<<<<<<' found
    • go.mod:326: Merge conflict string '=======' found
    • go.mod:328: Merge conflict string '>>>>>>>' found
    • ../go.mod:322: malformed module path "<<<<<<<": invalid char '<'

Verification

  • Local reproduction on the PR commit was not run here because the PR head content is not available in this runtime checkout.
  • Failure classification is based on direct Buildkite log evidence from /tmp/gh-aw/buildkite-logs/*.

Follow-up

After conflicts are resolved and lockfiles are consistent, re-run Buildkite; these failures should clear without infra retries.


What is this? | From workflow: Observability Agentic Workflow — Status

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Keep the 9.4 side of each conflict in go.mod, go.sum and NOTICE.txt and
only apply the brotli bump to v1.2.7 from the original commit. The
unrelated alexbrainman/sspi bump from main is not introduced.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mergify

mergify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is merged.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: github.com/andybalholm/brotli was updated v1.2.0 → v1.2.7 (indirect Go dependency) to address GHSA-c9gr-gmg4-2vqv / CVE-2026-111497; overall risk is low-to-moderate and merge-ready.

Dependency: github.com/andybalholm/brotli v1.2.0 → v1.2.7

Ecosystem: Go

Check Result
Breaking changes ✅ None found in this repo’s consumed interfaces
Testable in PR ✅ Yes — PR workflows run on pull_request and include go.mod/x-pack/libbeat/** paths
Changelog highlights (v1.2.0 → v1.2.7)
  • Upstream GitHub Releases for exact tag notes were unavailable (no release entries found via MCP for v1.2.7 / 1.2.7).
  • Local PR metadata explicitly states security intent: changelog/fragments/1793295453-update-brotli-to-1.2.7-to-fix-malformed-input-decoding.yaml:1-4 references GHSA-c9gr-gmg4-2vqv / CVE-2026-111497.
  • Tag commit for v1.2.7 (33c2a988...) message: "Detect and report invalid stream earlier", consistent with hardening malformed-stream handling.
  • CVE assessment: this change reduces decoder panic/DoS exposure on malformed Brotli input; no evidence of expanded privileged behavior or new attack surface in beats-specific integration.
Usage in this repository
  • Dependency bump location: go.mod:324 (github.com/andybalholm/brotli v1.2.7 // indirect), go.sum:187-188.
  • No direct imports of github.com/andybalholm/brotli in beats Go source.
  • Dependency path is transitive via Arrow modules (from go mod graph), and Arrow is used in parquet reader code: x-pack/libbeat/reader/parquet/parquet.go:13-16.
Compatibility assessment
  • Version change is within major v1 (no Go import-path break expected).
  • Module remains // indirect; no calling code changes in beats.
  • Since usage is transitive and no direct Brotli APIs are consumed by beats, risk of interface breakage in this PR is low.
  • PR testability is present in GitHub workflows with pull_request triggers and relevant path filters, e.g. xpack-filebeat-macos-unit-tests.yml:6-30 includes go.mod and x-pack/libbeat/**.

Labels Applied

  • oblt-aw/ai/merge-ready — applied (low-to-moderate risk, no repo-impacting breaking changes found, and PR-context testability present).

What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@github-actions

Copy link
Copy Markdown
Contributor

Automerge skipped

Automerge skipped this pull request because the changed files do not match any configured dependency collection.

If this update should be automerged, ask a maintainer to add or adjust a collection, or merge the pull request manually.

See Opt in or opt out for how to enable or disable Automerge collections on the Control Plane Dashboard.

Collections currently enabled for automerge: github-actions, pre-commit, terraform, open-policy-agent, vm-images

Changed files considered:

  • NOTICE.txt
  • changelog/fragments/1793295453-update-brotli-to-1.2.7-to-fix-malformed-input-decoding.yaml
  • go.mod
  • go.sum

@macdewee
macdewee enabled auto-merge (squash) November 10, 2026 14:40
@macdewee
macdewee merged commit eff217b into 9.4 Nov 10, 2026
246 checks passed
@macdewee
macdewee deleted the mergify/bp/9.4/pr-54234 branch November 10, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport conflicts There is a conflict in the backported pull request needs_team Indicates that the issue/PR needs a Team:* label oblt-aw/ai/merge-ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants