Skip to content

Bump Netty to 4.1.133.Final and update trivyignore - #1374

Merged
ezhang6811 merged 4 commits into
aws-observability:mainfrom
ezhang6811:fix-netty-cve
May 7, 2026
Merged

ezhang6811 merged 4 commits into
aws-observability:mainfrom
ezhang6811:fix-netty-cve

Conversation

@ezhang6811

Copy link
Copy Markdown
Contributor

Issue #, if available: #1372

Description of changes:
Bump netty to 4.1.133.Final to fix CVE-2026-41417. This CVE is low-risk for end-users as no attacker-controlled input reaches setUri().

Updated trivyignore to keep workflows unblocked until the next ADOT Java release (in ~2 weeks).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ezhang6811
ezhang6811 requested a review from a team as a code owner May 7, 2026 00:37

@github-actions github-actions 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.

Overall this PR looks good β€” straightforward dependency bump with appropriate trivyignore updates. Found a couple of minor issues noted inline.

Comment thread CHANGELOG.md Resolved
Comment thread dependencyManagement/build.gradle.kts Resolved

@github-actions github-actions 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.

Review: Clean, well-scoped CVE remediation PR. No bugs, no security issues, no correctness concerns. One minor suggestion posted inline. LGTM.

Comment thread dependencyManagement/build.gradle.kts Resolved
@codecov-commenter

codecov-commenter commented May 7, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 69.39%. Comparing base (09e6487) to head (f08fe19).
⚠️ Report is 570 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #1374       +/-   ##
=============================================
- Coverage     85.71%   69.39%   -16.33%     
- Complexity       19      704      +685     
=============================================
  Files             3       63       +60     
  Lines            49     3437     +3388     
  Branches          5      487      +482     
=============================================
+ Hits             42     2385     +2343     
- Misses            3      861      +858     
- Partials          4      191      +187     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vastin vastin 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.

LGTM

@ezhang6811
ezhang6811 enabled auto-merge (squash) May 7, 2026 01:30
@ezhang6811
ezhang6811 merged commit 9463913 into aws-observability:main May 7, 2026
13 of 15 checks passed
@ezhang6811
ezhang6811 deleted the fix-netty-cve branch May 7, 2026 19:14
wangzlei pushed a commit that referenced this pull request Aug 19, 2026
## Description of changes

Bumps Netty from `4.1.136.Final` to `4.1.137.Final` to fix
**CVE-2026-59903**.

The Trivy image scan in `pr-build` currently fails on:

| Library | Vulnerability | Severity | Installed | Fixed |
|---|---|---|---|---|
| `io.netty:netty-codec-http` | `CVE-2026-59903` | MEDIUM |
4.1.136.Final | 4.2.17.Final, **4.1.137.Final** |

This blocks **every** PR, not any individual change, since the finding
comes from a bundled dependency. It is currently the sole reason
`all-pr-checks-pass` fails on open PRs (for example #1434, where the
only failing step in `Build on ubuntu-latest` is "Perform image scan").

Bumping is preferred over a `trivyignore` suppression here because a
patch release with the fix is already available, consistent with #1432
(4.1.136.Final), #1389 (4.1.135.Final), and #1374 (4.1.133.Final).

### Files changed

- `dependencyManagement/build.gradle.kts` β€” `netty-bom`
-
`appsignals-tests/images/http-clients/netty-http-client/build.gradle.kts`
β€” `netty-all`
- `appsignals-tests/images/http-servers/netty-server/build.gradle.kts` β€”
`netty-all`

The two contract-test app pins are bumped alongside the BOM to keep them
in sync, matching #1432.

## Test plan

Verified locally before pushing:

- `netty-bom`, `netty-all`, and `netty-codec-http` 4.1.137.Final are all
published on Maven Central.
- Gradle configuration succeeds (`:dependencyManagement:help` β†’ `BUILD
SUCCESSFUL`).
- Dependency resolution confirms the new version takes effect, including
upgrading transitives:
  ```
  io.netty:netty-all:4.1.137.Final
  io.netty:netty-codec-http:4.1.137.Final
  io.netty:netty-codec-http:4.1.100.Final -> 4.1.137.Final (c)
  ```

CI provides the authoritative verification: the `pr-build` image scan
should now pass, and the netty contract tests exercise the upgraded
version.

## By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
haneric00 pushed a commit that referenced this pull request Aug 26, 2026
## Description of changes

Bumps Netty from `4.1.136.Final` to `4.1.137.Final` to fix
**CVE-2026-59903**.

The Trivy image scan in `pr-build` currently fails on:

| Library | Vulnerability | Severity | Installed | Fixed |
|---|---|---|---|---|
| `io.netty:netty-codec-http` | `CVE-2026-59903` | MEDIUM |
4.1.136.Final | 4.2.17.Final, **4.1.137.Final** |

This blocks **every** PR, not any individual change, since the finding
comes from a bundled dependency. It is currently the sole reason
`all-pr-checks-pass` fails on open PRs (for example #1434, where the
only failing step in `Build on ubuntu-latest` is "Perform image scan").

Bumping is preferred over a `trivyignore` suppression here because a
patch release with the fix is already available, consistent with #1432
(4.1.136.Final), #1389 (4.1.135.Final), and #1374 (4.1.133.Final).

### Files changed

- `dependencyManagement/build.gradle.kts` β€” `netty-bom`
-
`appsignals-tests/images/http-clients/netty-http-client/build.gradle.kts`
β€” `netty-all`
- `appsignals-tests/images/http-servers/netty-server/build.gradle.kts` β€”
`netty-all`

The two contract-test app pins are bumped alongside the BOM to keep them
in sync, matching #1432.

## Test plan

Verified locally before pushing:

- `netty-bom`, `netty-all`, and `netty-codec-http` 4.1.137.Final are all
published on Maven Central.
- Gradle configuration succeeds (`:dependencyManagement:help` β†’ `BUILD
SUCCESSFUL`).
- Dependency resolution confirms the new version takes effect, including
upgrading transitives:
  ```
  io.netty:netty-all:4.1.137.Final
  io.netty:netty-codec-http:4.1.137.Final
  io.netty:netty-codec-http:4.1.100.Final -> 4.1.137.Final (c)
  ```

CI provides the authoritative verification: the `pr-build` image scan
should now pass, and the netty contract tests exercise the upgraded
version.

## By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants