Skip to content

Fix zstd CVE-2026-116591 and update compatible Go dependencies - #210

Merged
2dust merged 4 commits into
2dust:mainfrom
OneMiny:fix/zstd-cve-2026-116591-and-update-dependencies
Nov 26, 2026
Merged

2dust merged 4 commits into
2dust:mainfrom
OneMiny:fix/zstd-cve-2026-116591-and-update-dependencies

Conversation

@OneMiny

@OneMiny OneMiny commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Upgrade github.com/klauspost/compress from v1.20.1 to v1.20.5 to address GO-2026-6865 / CVE-2026-116591

Recorded before-and-after decoder validation

The recorded host regression harness exercises both DecodeAll and streaming decoding with malformed Huffman input, alongside benign decoding and error-handling controls.

Check Before the update After the update
Malformed input through DecodeAll Harness reports a decoder panic and exits nonzero Completes without a panic
Malformed input through the streaming decoder Harness reports a decoder panic and exits nonzero Completes without a panic
Benign Zstd round trip Passes Passes
Truncated frame Rejected Rejected
Configured decoder memory limit Enforced Enforced

The malformed-input checks reach the decoder on both revisions. The baseline records PPV_REACHED followed by the harness's panic report; the updated candidate records PPV_REACHED and completes without a panic.

Race-detector coverage

The updated candidate passes the existing Huffman and FSE dependency tests with race detection enabled:

go test -mod=readonly -race -count=1 \
  github.com/klauspost/compress/huff0 \
  github.com/klauspost/compress/fse

@2dust

2dust commented Nov 24, 2026

Copy link
Copy Markdown
Owner

非常感谢
是否所有的升级项的更新都是必要的?
因为每个 pr 尽量只做必要的处理,其他额外的更新放到另外的 pr

@OneMiny

OneMiny commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

非常感谢 是否所有的升级项的更新都是必要的? 因为每个 pr 尽量只做必要的处理,其他额外的更新放到另外的 pr

I’ve updated the PR, and only the dependency with a CVE issue is being updated

@2dust
2dust merged commit e23aca4 into 2dust:main Nov 26, 2026
1 check passed
rosebe added a commit to rosebe/AndroidLibXrayLite that referenced this pull request Nov 26, 2026
Fix zstd CVE-2026-116591 and update compatible Go dependencies (2dust#210)
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