Skip to content

fix: [FL-29714] patch Snyk x/net/html and x/sys/windows vulnerabilities#101

Merged
josue merged 4 commits into
mainfrom
fix/FL-29714-patch-snyk-xnet-xsys-vulnerabilities
May 27, 2026
Merged

fix: [FL-29714] patch Snyk x/net/html and x/sys/windows vulnerabilities#101
josue merged 4 commits into
mainfrom
fix/FL-29714-patch-snyk-xnet-xsys-vulnerabilities

Conversation

@josue
Copy link
Copy Markdown
Collaborator

@josue josue commented May 27, 2026

Summary

  • Add replace golang.org/x/net => golang.org/x/net v0.55.0 to fix 5 CVE-2026-* vulnerabilities in x/net/html (XSS + CPU exhaustion)
  • Add replace golang.org/x/sys => golang.org/x/sys v0.44.0 to fix CVE-2026-39824 in x/sys/windows (integer overflow)
  • Upgrade google.golang.org/grpc v1.80.0 → v1.81.1 to resolve 11 additional Snyk vulnerabilities (7 otel + 4 go-jose)
  • Remove go-jose/v4 replace directive (grpc v1.81.1 natively requires v4.1.4)
  • Remove 11 .snyk safety-net ignores now fixed by the grpc upgrade (35 → 24 ignores, 31% reduction)
  • Add .snyk safety-net ignores for the 6 x/net + x/sys CVEs

Vulnerabilities Fixed

x/net + x/sys (replace directives)

CVE Package Severity Fix
CVE-2026-42506 x/net/html Medium (5.3) v0.55.0
CVE-2026-27136 x/net/html Medium (5.3) v0.55.0
CVE-2026-42502 x/net/html Medium (5.3) v0.55.0
CVE-2026-25681 x/net/html Medium (5.3) v0.55.0
CVE-2026-25680 x/net/html Medium (5.3) v0.55.0
CVE-2026-39824 x/sys/windows Medium (4.8) v0.44.0

OpenTelemetry (fixed by grpc v1.81.1 → otel v1.43.0)

CVE Package Severity
CVE-2026-24051 otel/sdk/resource High
CVE-2026-29181 otel/baggage, internal/global, internal/errorhandler, propagation (4 entries) High
CVE-2026-39882 otel/exporters/otlp (2 entries) High
CVE-2026-39883 otel/sdk/resource High

go-jose (fixed by grpc v1.81.1 → go-jose v4.1.4)

CVE Package Severity
go-jose (signature verification) High (8.0)
CVE-2026-34986 go-jose/v4, go-jose/cipher, go-jose/v4/cipher (3 entries) High (8.7)

Test plan

  • go test ./ (unit tests) — pass
  • cd _examples && go test ./. (integration tests) — pass
  • govulncheck ./... — zero vulnerabilities
  • go list -m confirms x/net v0.55.0, x/sys v0.44.0, grpc v1.81.1
  • go mod why confirms otel + go-jose packages are ghost deps
  • .snyk YAML validation — valid, 24 ignores remaining
  • CI passes

JIRA: FL-29714

Add replace directives to pin golang.org/x/net to v0.55.0 (fixes 5
CVE-2026-* XSS and CPU exhaustion vulns in x/net/html) and
golang.org/x/sys to v0.44.0 (fixes CVE-2026-39824 integer overflow
in x/sys/windows).

Add .snyk safety-net ignores for all 6 CVEs.
Copilot AI review requested due to automatic review settings May 27, 2026 13:29
@josue josue requested a review from caseyh as a code owner May 27, 2026 13:29
@flume-bot
Copy link
Copy Markdown

flume-bot commented May 27, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Pins vulnerable transitive Go dependencies (golang.org/x/net, golang.org/x/sys) to patched versions and adds Snyk ignore entries as a backstop for reported CVEs.

Changes:

  • Add replace directives to force golang.org/x/net v0.55.0 and golang.org/x/sys v0.44.0.
  • Add .snyk ignore entries for the 6 reported CVEs (x/net/html + x/sys/windows).
  • Mirror the module pinning in _examples/go.mod for the example module.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
go.mod Adds replace directives to pin x/net and x/sys to patched versions.
.snyk Adds ignore entries for the 6 Snyk vulnerability IDs with expiry/created metadata.
_examples/go.mod Mirrors the replace directives for the example module dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread go.mod
Comment thread _examples/go.mod
Copy link
Copy Markdown
Collaborator Author

@josue josue left a comment

Choose a reason for hiding this comment

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

Adversarial Review — PR #101 (Snyk x/net + x/sys vulnerability patches)

Reviewers: Claude Opus (Gemini 2.5 Pro rate-limited, Claude performed full review)

New Findings: 2

Severity Finding File
MEDIUM .snyk x/net/html ignores lack "not imported/compiled" attestation — SOC 2 audit gap .snyk:256-293
LOW .snyk x/sys/windows ignore should note build-tag guard .snyk:294-301

Copilot Comments: Both Fixed

Both Copilot comments about missing go.sum entries were valid and have been addressed in commit 2ef9970. Replies posted below.

Verification

  • govulncheck ./... → No vulnerabilities found
  • go list -m → x/net v0.55.0, x/sys v0.44.0 effective
  • go mod why golang.org/x/net/html → not needed by main module
  • x/sys/windows build-tag guarded, not compiled on linux/darwin
  • All CI checks green, Snyk reports 0 issues

Comment thread .snyk
Comment thread .snyk
Add explicit "not compiled into any binary" attestation to x/net/html
ignores and note build-tag constraint for x/sys/windows ignore.
Copilot AI review requested due to automatic review settings May 27, 2026 13:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 5 changed files in this pull request and generated no new comments.

Upgrade google.golang.org/grpc v1.80.0 → v1.81.1 which transitively
pulls otel v1.43.0 and go-jose v4.1.4, fixing all flagged CVEs:

- 7 OpenTelemetry CVEs: CVE-2026-24051 (sdk/resource), CVE-2026-29181
  (baggage, internal/global, internal/errorhandler, propagation),
  CVE-2026-39882 (otlpmetrichttp, otlptracehttp), CVE-2026-39883
  (sdk/resource) — all fixed in otel v1.43.0
- 4 go-jose CVEs: CVE-2026-34986 + signature verification issue —
  all fixed in go-jose v4.1.4

Remove go-jose replace directive from both go.mod files (grpc v1.81.1
natively requires v4.1.4). Remove 11 .snyk safety-net ignores that
are no longer needed. Reduces .snyk ignore count from 35 to 24 (31%).

Verified: govulncheck clean, go mod why confirms all removed packages
are ghost deps, all tests pass.
@josue josue merged commit 68399ed into main May 27, 2026
8 checks passed
@josue josue deleted the fix/FL-29714-patch-snyk-xnet-xsys-vulnerabilities branch May 27, 2026 14:27
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.

4 participants