Skip to content

chore(deps): update colord past the malformed-color advisory #4103

Closed

Description

@yannickmonney

The UI's production dependency lock still resolves [email protected], covered by moderate GHSA-2wm5-q62r-hmrv. Update the compatible dependency resolution and preserve document-icon rendering.

Evidence:

  • Security run 37071846371, Bun audit job checked out 7cddd6d7734082c8127797639d8220ef4fba97a4 and reported workspace:@tale/ui > react-file-icon > colord at 2026-10-02 22:20:27 UTC. The high/critical gate passed; this is a moderate finding.
  • packages/ui/package.json pins react-file-icon 1.6.0. Its lock entry allows colord ^2.9.3, while bun.lock resolves 2.9.3.
  • The upstream affected range is below 2.9.4, with 2.9.4 patched. The advisory concerns costly rejection of unusually large malformed color input.
  • Tale's observed DocumentIcon wrapper uses react-file-icon's predefined styles selected by extension and exposes no arbitrary color prop. This is dependency-presence evidence, not a reproduced Tale denial of service or a claim that untrusted color strings reach the parser. No production testing was performed.

Acceptance:

  • Resolve to a maintained compatible patched colord version, keeping the change minimal and the frozen lock reproducible; confirm there are no remaining affected copies.
  • Run a fresh production audit and retain the complete result. Do not add a suppression merely to hide the advisory.
  • Run existing document-icon and UI tests plus the repository gate. Observe representative known/unknown-extension and folder icons in a local browser for visual regressions, with synthetic data.
  • Confirm and document input reachability from the actual call sites; no oversized production request is needed.
  • Independent review before merge. Route via the normal deduplicated fleet intake and an agent owner.

All-state searches for the exact GHSA ID and colord found no existing report before filing. The dependency state predates PR #4100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions