Skip to content

build(deps): Bump github.com/fxamacker/cbor/v2 from 2.9.3 to 2.9.4 - #1504

Merged
lklimek merged 1 commit into
v1.8-devfrom
dependabot/go_modules/github.com/fxamacker/cbor/v2-2.9.4
Sep 22, 2026
Merged

lklimek merged 1 commit into
v1.8-devfrom
dependabot/go_modules/github.com/fxamacker/cbor/v2-2.9.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/fxamacker/cbor/v2 from 2.9.3 to 2.9.4.

Release notes

Sourced from github.com/fxamacker/cbor/v2's releases.

v2.9.4

This release fixes potential panics when decoding a CBOR map whose key decodes to an uncomparable Go value under certain conditions.

Not affected: user apps that don't register tag types and don't use map key types that are either named empty interfaces (e.g. type MyAny any) or contain interfaces.

These potential panics can be encountered when one of these two conditions is met:

  • user application registers a tag type (via TagSet interface) that is an array or struct with uncomparable or interface{} element or field type, or
  • user application specifies a destination Go map whose key type is a named empty interface type or a type containing an interface.

This was identified while improving tests and reviewing code for an upcoming release.

Tests and fuzz tests were extended to cover this bug.

Upgrading to v2.9.4 is recommended.

What's Changed

Full Changelog: fxamacker/cbor@v2.9.3...v2.9.4

Commits
  • be0da0d Merge pull request #817 from fxamacker/fxamacker/release-2.9-fix-hashable-map...
  • cd9c45c Fix panic decoding uncomparable map key into non any key type
  • 259f9bb Fix panic decoding uncomparable registered tag value as map key
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

PR Hygiene · ce3f1a5

  • Bots — thepastaclaw not yet — /skip-bots proceeds without the ones not yet reported
  • Self-review — not asked of a bot author
  • Within your 5 open PRs
  • Build green
  • Approvals
    • tenderdash (go.mod, go.sum) — lklimek or shumkov

When every box is checked the PR Hygiene check passes and this can merge.

Bumps [github.com/fxamacker/cbor/v2](https://github.com/fxamacker/cbor) from 2.9.3 to 2.9.4.
- [Release notes](https://github.com/fxamacker/cbor/releases)
- [Commits](fxamacker/cbor@v2.9.3...v2.9.4)

---
updated-dependencies:
- dependency-name: github.com/fxamacker/cbor/v2
  dependency-version: 2.9.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Sep 22, 2026
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: dashpay/tenderdash/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 474d186d-4435-4709-af5e-d2a3b096f758

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Sep 22, 2026
@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

Dependency security review: github.com/fxamacker/cbor/v2 2.9.3 → 2.9.4

Verdict: ✅ no security concerns. Safe to merge.

Upstream change (v2.9.3...v2.9.4)

There are 3 commits (PR fxamacker/cbor#817). Only cache.go (+27/−7) and decode.go (+42/−18) change; everything else is tests.

  • The fix covers possible panics when decoding a CBOR map key into an uncomparable Go value. It adds typeInfo.keyNeedsHashableValueCheck, computed recursively for interface, array and struct key types. Before, the check ran only when the key type was exactly interface{}.
  • isHashableValue now uses Type.Comparable() && Value.Comparable() for struct, interface and array values, with an explicit fast path for time.Time.
  • This is a hardening fix and it does not widen the attack surface. The panic only triggers when the app (a) registers TagSet types with uncomparable or interface fields, or (b) decodes into maps keyed by a named empty interface or a type that contains an interface.

Advisories

  • OSV.dev (Go ecosystem) has no entries for github.com/fxamacker/cbor/v2.
  • The GitHub Advisory DB has no global advisories for this package, and the upstream repo has no published advisories.
  • The release notes do not assign a CVE or GHSA to this fix.

Reachability in tenderdash

  • The only consumer is cmd/abcidump/cmd/cbor.go, an offline debugging CLI (abcidump cbor decode). go mod why confirms no node, consensus, p2p or RPC path imports it.
  • It calls cbor.Unmarshal(data, &map[interface{}]interface{}{}). The key type is the plain interface{}, which 2.9.3 already checked for hashability. No TagSet is registered, so tenderdash was not affected by the fixed panic. For this path the new logic resolves to the same check.
  • Differential test: I decoded the same set of adversarial map-key inputs with the exact call pattern above against both versions. The inputs were array, map, tag-wrapped, bignum, time and bytestring keys. Results were identical, with no panics and no behaviour change.

Integrity

  • go mod verify succeeded ("all modules verified"), and the go.sum hashes match the checksum DB.
  • The diff touches only go.mod and go.sum, with no transitive dependency changes.
  • CI is green (build, tests, e2e, lint, govulncheck).

🤖 Co-authored by Claudius the Magnificent AI Agent

@lklimek
lklimek merged commit 68408ee into v1.8-dev Sep 22, 2026
20 of 21 checks passed
@lklimek
lklimek deleted the dependabot/go_modules/github.com/fxamacker/cbor/v2-2.9.4 branch September 22, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file waiting-bots Waiting for the review bots to report on this head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants