Skip to content

security: vulnerability remediation - #323

Open
kernel-internal[bot] wants to merge 1 commit into
mainfrom
security/vuln-remediation
Open

security: vulnerability remediation#323
kernel-internal[bot] wants to merge 1 commit into
mainfrom
security/vuln-remediation

Conversation

@kernel-internal

@kernel-internal kernel-internal Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Vulnerability Remediation

This PR was generated by the Socket-centric vulnerability remediation workflow. Review the planned dependency changes and confirmation evidence before merging.

Fixed

CVE/GHSA Package Ecosystem Old Version New Version Manifest Confirmation
GHSA-9h8m-3fm2-qjrq go.opentelemetry.io/otel/sdk None v1.38.0 1.43.0 confirmed

Not Included

  • Deferred by batch limit: 25 advisories. They will be considered by future runs.
  • Other deferred scanner findings: 3.
  • Unconfirmed attempted fixes: 0.
Deferred details
CVE/GHSA Package Reason
Unavailable from detector github.com/getkin/kin-openapi Missing CVE/GHSA identifier required for Socket fix planning.
Unavailable from detector golang.org/x/crypto Missing CVE/GHSA identifier required for Socket fix planning.
Unavailable from detector google.golang.org/grpc Missing CVE/GHSA identifier required for Socket fix planning.

Note

Medium Risk
Touches observability export paths (OTLP/Prometheus) and bumps gRPC/crypto transitively; behavior should be equivalent but warrants smoke tests on metrics/traces/logs.

Overview
This PR upgrades OpenTelemetry and several related Go modules (notably go.opentelemetry.io/otel/sdk from v1.38.0 to v1.44.0) to address GHSA-9h8m-3fm2-qjrq, with matching updates in go.sum for Prometheus, gRPC, golang.org/x/*, and other transitive dependencies pulled in by the bump.

In lib/otel/otel.go, semconv is moved from v1.37.0 to v1.41.0, and the deployment environment resource attribute is set via DeploymentEnvironmentNameKey.String(cfg.Env) instead of DeploymentEnvironmentName(cfg.Env), aligning with the newer semconv API while keeping the same telemetry resource shape.

Reviewed by Cursor Bugbot for commit d509a41. Bugbot is set up for automated code reviews on this repo. Configure here.

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9787bed. Configure here.

Comment thread go.mod Outdated
Remediates GHSA-9h8m-3fm2-qjrq (CVE-2026-24051, high): arbitrary code
execution via PATH hijacking in the Go SDK, first patched in 1.40.0. Also
covers CVE-2026-29181 (high), a baggage header CPU/allocation
amplification that is only fixed in 1.41.0, so 1.40.0 alone is not enough.

The SDK's default resource moved to schema 1.41.0, which made
resource.Merge fail with a conflicting schema URL against our 1.37.0
semconv import and broke every test in lib/otel. Moved the import to
semconv/v1.41.0; DeploymentEnvironmentName no longer exists there, so the
attribute is now built from DeploymentEnvironmentNameKey.

Co-authored-by: Cursor <[email protected]>
@ulziibay-kernel
ulziibay-kernel force-pushed the security/vuln-remediation branch from 9787bed to d509a41 Compare July 31, 2026 18:07

@ulziibay-kernel ulziibay-kernel 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.

Bumped to otel 1.44.0 so this also covers CVE-2026-29181, which needs 1.41.0 and was not addressed by the original 1.40.0 bump. Realigned the semconv import to v1.41.0 to fix the conflicting schema URL that was breaking every lib/otel test. test and test-darwin now pass.

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.

1 participant