Skip to content

build(deps): Bump github.com/fxamacker/cbor/v2 from 2.9.0 to 2.9.2 - #1305

Merged
lklimek merged 1 commit into
v1.6-devfrom
dependabot/go_modules/github.com/fxamacker/cbor/v2-2.9.2
Jun 12, 2026
Merged

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 5, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/fxamacker/cbor/v2 from 2.9.0 to 2.9.2.

Release notes

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

v2.9.2

This release refactors and hardens the streaming encoder by adding stricter checks for encoding CBOR indefinite-length data. Other changes include minor bugfixes, defensive checks, and more tests.

Projects that don't use CBOR indefinite-length data may also want to upgrade (summary of prior releases).

The stricter checks in the encoder prevent improper use of the library and bad inputs from producing malformed CBOR indefinite-length data that would be rejected by the decoder.

This release passed fuzz tests (billions of execs) and it is production quality.

What's Changed

CI / GitHub Actions and Docs

Full Changelog: fxamacker/cbor@v2.9.1...v2.9.2

v2.9.1

This release includes important bugfixes, defensive checks, improved code quality, and more tests. Although not public, the fuzzer was also improved by adding more fuzz tests.

🐞 Bug fixes related to the keyasint feature

These changes only affect Go struct fields tagged with keyasint:

  • [Decoding] Reject integer keys that exceed math.MaxInt64 when decoding CBOR map to a struct with keyasint field (PR #757)
  • [Decoding] Prevent string representation of an integer key from matching the struct field tagged by keyasint (PR #757)
  • [Encoding & Decoding] Deduplicate struct fields with the same normalized keyasint tag values (PR #757)

🐞 Other bug fixes and defensive checks

Some of the bugs fixed are related to decoding extreme values that cannot be encoded with this library. For example, the decoder checks if epoch time encoded as CBOR float value representing hundreds of billions of years overflows int64(seconds).

NOTE: It is generally good practice to avoid using floating point to store epoch time (even when not using CBOR).

  • [Decoding] Reject decoding epoch time encoded as floats that overflow int64 (PR #753)
  • [Encoding] Return a cloned slice for an empty RawMessage from RawMessage.MarshalCBOR (PR #753)
  • [Encoding] Reject encoding nil inside indefinite-length strings (PR #750)

... (truncated)

Commits
  • 45589ab Merge pull request #769 from fxamacker/fxamacker/update-readme-release-status
  • 8e98ea5 Update README for v2.9.2 release
  • e501aca Merge pull request #768 from fxamacker/fxamacker/update-docs
  • e6af0aa Merge pull request #767 from fxamacker/fxamacker/refactor-indefinite-length-e...
  • 57f1601 Merge pull request #766 from fxamacker/fxamacker/no-opt-to-remove-nil-type-in...
  • 0cdb674 Fix indefinite-length string chunk validation
  • c0db60f Improve GitHub Workflow code coverage regex
  • 63937fe Fix panic message to print the unrecognized tag
  • f0352a5 Add more tests
  • 0c20a0f Refactor encoding of indefinite-length data item
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [github.com/fxamacker/cbor/v2](https://github.com/fxamacker/cbor) from 2.9.0 to 2.9.2.
- [Release notes](https://github.com/fxamacker/cbor/releases)
- [Commits](fxamacker/cbor@v2.9.0...v2.9.2)

---
updated-dependencies:
- dependency-name: github.com/fxamacker/cbor/v2
  dependency-version: 2.9.2
  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 May 5, 2026
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label May 5, 2026
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the Stale label Jun 6, 2026
@lklimek

lklimek commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Dependency Security Review: github.com/fxamacker/cbor/v2 2.9.0 → 2.9.2

Verdict: SAFE — upgrade recommended.

The diff is a clean bump in go.mod/go.sum with no other file changes.

Key findings

  • No CVEs or GHSAs registered for this package in OSV.dev or the GitHub Advisory Database.
  • However, v2.9.1 and v2.9.2 fix 3 HIGH and 4 MEDIUM security-class bugs in v2.9.0 that received no CVE assignment (automated scanners will not flag the old version):
    • HIGH: keyasint positive-integer keys >MaxInt64 silently wrapped to wrong field (CWE-190/CWE-843)
    • HIGH: CBOR text-key "1" matched integer-tagged keyasint field (type confusion, CWE-843)
    • HIGH: Duplicate normalised keyasint tags caused ambiguous decode/encode (CWE-706)
    • MEDIUM: Epoch-time float→int64 overflow (e.g. 1e20 sec → garbage time.Time) (CWE-190)
    • MEDIUM: Nil chunk in indefinite-length string caused panic/shared-slice mutation (CWE-20)

Tenderdash impact

The sole call site is cmd/abcidump/cmd/cbor.go — a CLI diagnostic tool that calls cbor.Unmarshal into a map[interface{}]interface{}, not a keyasint-tagged struct. None of the HIGH/MEDIUM fixes are reachable from the current call site. Upgrading is still the correct action as it removes unnecessary exposure.

Recommendation

Merge. No code changes needed.


🤖 Co-authored by Claudius the Magnificent AI Agent

@lklimek
lklimek merged commit 02be4bf into v1.6-dev Jun 12, 2026
15 checks passed
@lklimek
lklimek deleted the dependabot/go_modules/github.com/fxamacker/cbor/v2-2.9.2 branch June 12, 2026 09:57
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 Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant