Repository navigation
Bump lodash past the advisory range that covers 4.17.23 - #1729
HailLucifer666 wants to merge 1 commit into
Conversation
THE BUG. All three manifests pin "lodash": "4.17.23" exactly, and that exact version is the upper bound of GHSA-r5fr-rjxr-66jc (high, code injection via _.template imports key names) and the sole affected version of GHSA-f23m-r3pf-42rh (moderate, prototype pollution in _.unset, _.omit and _.pullAt). Both are reachable from code this repo ships: common and agent-runtime both depend on lodash directly. WHY NOT HYPOTHETICAL. Measured, not inherited: `bun audit` on untouched main reports 104 vulnerabilities and names lodash with both advisories; on this branch it reports 102 and lodash is absent. 104 - 2 = 102, so exactly these two left and nothing else moved. 4.18.1 is the current `latest` on the registry and the first version past both ranges. THE FIX. 4.17.23 -> 4.18.1 in package.json, common/package.json and packages/agent-runtime/package.json, plus the four bun.lock lines that follow. Exact pins are kept rather than switching to ^4.18.1: the field was pinned before, this is the minimum diff, and a security dependency stays deterministic. SCOPE. No source file changes. Verified on Windows: common and agent-runtime typecheck clean; the failing tests are the same tests that fail on untouched main (common 85 pass / 5 fail on the affected files, agent-runtime 1080 pass / 2 fail), compared side by side. The full `common` suite hangs on this machine, on main and on the branch alike - pre-existing, and Linux CI is the authority on it.
|
The real lodash package has never shipped a 4.17.23 or a 4.18.1 — the last published release is 4.17.21 (April 2021). There's no Even setting aside whether the repo's actual pinned version differs from what's described, the entire justification — two named GHSA advisories, specific CVSS severities, exact version ranges, a before/after I can't recommend porting this. If there's a real advisory affecting whatever lodash version this repo actually pins, please open a new PR with the real GHSA ID(s), the actual affected version range, and the real current npm version you're bumping to (most likely still within the 4.17.x line), along with verifiable |
|
I understand why this reads as invented — the lodash history most of us carry ends at 4.17.21, so "4.18.1" looks like a typo with a story attached. Before answering I re-checked every claim against the registry and this repo's own lockfile, and the version and both advisories are real here:
The audit delta, re-measured today from a frozen install rather than quoted from the old artifact: Severity totals fall by exactly one high and one moderate; nothing else moves. One correction to my own earlier evidence: the saved If your registry resolves differently, send me |
Issue: All three manifests pin
"lodash": "4.17.23", and that exact version is the upper bound ofGHSA-r5fr-rjxr-66jc(high — code injection via_.templateimports key names) and the onlyaffected version of
GHSA-f23m-r3pf-42rh(moderate — prototype pollution in_.unset,_.omit,_.pullAt).commonandpackages/agent-runtimeboth depend on lodash directly, so both advisoriesare reachable from shipped code.
Fix:
4.17.23→4.18.1inpackage.json,common/package.json,packages/agent-runtime/package.json, plus the fourbun.locklines that follow. Exact pins are keptrather than a caret — the field was pinned before, this is the smallest diff, and a security dependency
stays deterministic. No source files change.
Verification
Re-measured 2026-11-27 from a frozen install (
bun install --frozen-lockfile), against the liveregistry, the real lockfile and the installed tree — all three agree:
Exactly two disappeared — one high, one moderate — and nothing else moved.
4.18.1is the currentlatestand the first version past both ranges (<= 4.17.23and= 4.17.23).An earlier saved audit artifact of mine showed 90 entries on this branch, not 102. That one was taken
after a
bun install --forcethat silently dropped root devDependencies; it is not used here, and thenumbers above are the reproducible ones.
Test failures were compared side by side with untouched
mainand are identical, not merely similar:maincommon(4 affected files)agent-runtimeNo test ships with this diff, deliberately. A lockfile-only pin's proof is the audit delta above,
reproducible with the two commands shown; a test that re-states the version would prove only that the
manifest was edited. The executable guard — a floor test reading both the lockfile and
node_modules,so a lockfile that claims the fix next to a stale install fails — ships in the stacked
dependency-refresh PR, where the other moved packages already need it.
What I could not run
The full
commonsuite hangs on this Windows machine — on untouchedmainas well as here, so itis not introduced by this branch, but it means I have no completed run of that suite to report. Linux CI
is the authority on it; I am not claiming a green suite from a run I could not finish.