Skip to content

hapi: fix(security): bump testify to v1.12.1 to drop vulnerable gopkg.in/yaml.v2 - #2

Open
dbubel wants to merge 1 commit into
masterfrom
chisel/bump-yaml-v2-via-testify
Open

hapi: fix(security): bump testify to v1.12.1 to drop vulnerable gopkg.in/yaml.v2#2
dbubel wants to merge 1 commit into
masterfrom
chisel/bump-yaml-v2-via-testify

Conversation

@dbubel

@dbubel dbubel commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bumped github.com/stretchr/testify from v1.4.0 to v1.12.1, which removes the transitive dependency on the vulnerable gopkg.in/yaml.v2 (excessive CPU/memory consumption) from the dependency graph entirely.
  • Regenerated go.sum and vendor/ via go mod tidy and go mod vendor to reflect the upgrade.

Jira

https://redventures.atlassian.net/browse/RPI-833

gopkg.in/yaml.v2 v2.2.2 was pulled in transitively by
github.com/stretchr/testify v1.4.0 and is vulnerable to excessive
CPU/memory consumption when decoding untrusted YAML.

Raise the declared version of the controlling direct dependency
github.com/stretchr/testify from v1.4.0 to v1.12.1, which no longer
depends on gopkg.in/yaml.v2 at all (it uses go.yaml.in/yaml/v3).
gopkg.in/yaml.v2 is now absent from the resolved module graph.

go.mod/go.sum updated via `go get -u` + `go mod tidy`; the pre-existing
vendor/ directory regenerated with `go mod vendor`.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

2 participants