Skip to content

cli: bundle manifest paths are printed raw, allowing terminal escape injection #2705

Closed

Description

@thiras

Source: GHSA-jr93-46mf-88wx (low bundle, internal audit at 772c8f4, re-confirmed on main).

decdn get prints bundle manifest paths with Display: the dry-run listing does println!(" {} ({n} bytes{chunks})", e.path) and the failure line does eprintln!("failed: {}: {}", failure.path, failure.error) (crates/cli/src/commands/bundle_pull.rs:1539-1540,1580). Nothing in manifest parsing, safe_join or the CLI rejects or escapes control characters. A publisher can therefore put terminal escape sequences in a path and have them interpreted by the puller's terminal. The dry-run listing also prints entries that safe_join would later reject.

  • Escape control characters in every manifest path the CLI prints (listing, failures, progress labels)
  • Consider rejecting control characters in manifest paths at parse time
  • Test: a path containing \x1b[ is printed escaped

Activity

  1. added
    kind:security
    area:cli
    prio:low
    on Oct 28, 2026
  2. moved this from Backlog to In progress in deCDNon Oct 29, 2026
  3. moved this from In progress to Done in deCDNon Oct 29, 2026
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

    area:clikind:securityprio:low

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions