Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
ci(osv): ignore GHSA-hp3w-g68c-fv3c (sprintf-js, no fix) until 2027-01-06 with reachability evidence
garrytan165daf834d38
diff --git a/TODOS.md b/TODOS.mdindex 5be9d48641..038244bea3 100644--- a/TODOS.md+++ b/TODOS.md@@ -1,5 +1,9 @@# TODOS+## Dependency hygiene (filed 2026-10-06, GBRA-40)++- [ ] **P3 — Move js-yaml 3 → 4 to drop argparse@1 / sprintf-js.** **What:** `osv-scanner.toml` ignores GHSA-hp3w-g68c-fv3c (sprintf-js, no patched version) until 2027-01-06 because only js-yaml 3's CLI loads argparse@1 → sprintf-js. **Fix:** upgrade js-yaml to 4 (argparse 2 has no sprintf-js; `safeLoad`/`safeDump` become `load`/`dump`), update `@types/js-yaml` and the override, then delete the ignore entry. **Effort:** S. **Priority:** P3.+## Contributor audit wave follow-ups (filed 2026-10-05, GBRA-40)### delta (owner: GBRA-40 (delta follow-ups))diff --git a/osv-scanner.toml b/osv-scanner.tomlnew file mode 100644index 0000000000..a570ced5df--- /dev/null+++ b/osv-scanner.toml@@ -0,0 +1,17 @@+# OSV-Scanner configuration (picked up from the repository root by osv-scan).+# Every entry needs a reason, an owner-visible expiry, and evidence that the+# vulnerable code is unreachable from gbrain. Remove an entry as soon as a+# fixed version exists or the dependency is gone.++[[IgnoredVulns]]+id = "GHSA-hp3w-g68c-fv3c"+ignoreUntil = 2027-01-06T00:00:00Z+reason = """+sprintf-js <= 1.1.3 (no patched version) throws RangeError on attacker-chosen+precision specifiers. It reaches bun.lock only as [email protected]'s dependency,+and argparse@1 only through js-yaml@3's CLI (node_modules/js-yaml/bin/js-yaml.js).+gbrain uses js-yaml's library API, which never loads argparse or sprintf-js, and+nothing in src/ or scripts/ imports either package, so no gbrain format string+reaches sprintf-js. Real fix: move to js-yaml 4 (argparse 2, no sprintf-js),+tracked in TODOS.md.+"""