← Back to Pull requests

chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.6 #9839

Closed
unknown closed this pull request without merging on Oct 07, 2026 08:44 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 00:51 UTC
Author

This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| github.com/fxamacker/cbor/v2 | v2.9.4 → v2.9.6 | !age | !confidence |

---

Release Notes

<details>
<summary>fxamacker/cbor (github.com/fxamacker/cbor/v2)</summary>

v2.9.6

Compare Source

v2.9.6 fixes 12 bugs, including an important fix for apps that decode CBOR maps into Go maps, and has one behavior change. API is unchanged but more errors are detected.

Most of these bugs were identified while improving tests and reviewing code for an upcoming release.

Tests and fuzz tests were extended.

Upgrading to v2.9.6 from all prior versions is recommended.

##### :lady_beetle: Important Fix

Not affected:

  • Decoding data this codec encoded from the same Go map type, because this codec does not encode to CBOR null from Go values of bool, integer, float, or string kind.

  • Apps that don't decode a CBOR null or undefined map key or value into a Go map whose key or value type is of bool, integer, float, or string kind.

  • Decoding CBOR maps into structs (struct fields of map type follow the bullet above).

  • Decoding CBOR maps into map[any]any, and into any (with unchanged DefaultMapType).
  • For use cases outside the "not affected" list, decoding a CBOR null or undefined map key or value (including 55799(null)) into a Go map whose key or value type is of bool, integer, float, or string kind kept the previous map entry's key or value (instead of the zero value). See PR #&#8203;855 for details.

    ##### :warning: Behavior change

    Decoding CBOR null or undefined into an interface that holds a value now sets it to nil, matching encoding/json (v1 and v2). Previously, the interface kept its value (PR #&#8203;827), which was not the intended behavior.

    ##### What's Changed

    Some of these bugs could only be triggered by incorrect usage in user apps, such as invalid struct tags or an unsupported DefaultByteStringType setting, etc. None of these bugs were reported by a project affected by them.

    ##### Decoding

  • Skip CBOR data item when destination struct has incorrect tags by @&#8203;fxamacker in #&#8203;821

  • Fix decoding CBOR null/undefined to interface value by @&#8203;fxamacker in #&#8203;827

  • Fix decoding to unaddressable value in interface by @&#8203;fxamacker in #&#8203;828

  • Improve the DefaultByteStringType check by @&#8203;fxamacker in #&#8203;829

  • Fix decoding to self-referencing types by @&#8203;fxamacker in #&#8203;831

  • Fix decoding 55799(null) to pointer or interface by @&#8203;fxamacker in #&#8203;851

  • Fix stale Go map entry from CBOR null key/value by @&#8203;fxamacker in #&#8203;855
  • ##### Encoding

  • Fix encoding self-referencing types by @&#8203;fxamacker in #&#8203;833

  • Fix panic encoding marshaler of unsupported underlying types by @&#8203;fxamacker in #&#8203;834

  • Fix omitzero panic encoding struct field of unsupported underlying types implementing marshaler by @&#8203;fxamacker in #&#8203;835

  • Fix encoding TimeUnixMicro outside 1677 to 2262 by @&#8203;fxamacker in #&#8203;837

  • - Encoded output also changes for some times within one second of either end of that range.
  • Reject encoding time.Time when Go formats wrong year by @&#8203;fxamacker in #&#8203;838
  • ##### CI / GitHub Actions and Docs

  • Improve docs related to encoding time.Time by @&#8203;fxamacker in #&#8203;854
  • Full Changelog: <https://github.com/fxamacker/cbor/compare/v2.9.4...v2.9.6>

    v2.9.5

    Compare Source

    This version was tagged from the wrong branch by mistake and is retracted.

    Use v2.9.6 (<https://github.com/fxamacker/cbor/releases/tag/v2.9.6>) instead.

    </details>

    ---

    Configuration

    📅 Schedule: (UTC)

  • Branch creation

  • - At any time (no schedule defined)
  • Automerge

  • - At any time (no schedule defined)

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    ♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.

    ---

    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR was generated by Mend Renovate. View the repository job log.
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==-->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: dmathieu Review duration: 472m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9839"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.5% · Safe to merge
    22.5%