fix: upgrade nanoid to 3.3.18, 5.1.6 (CVE-2026-67213) - #97
Conversation
Automated dependency upgrade by OrbisAI Security
Context: Maintainer edit on top of this PR's CVE-2026-67213 fix. What: Removes the `overrides` block from client/package.json. The three-line lockfile bump to nanoid 3.3.18 — the actual fix — is untouched. Why: The override bought nothing and cost future patches. postcss, the sole consumer, already asks for `^3.3.12`, a range that admits 3.3.18, so resolution reaches the patched version without help. Pinning it exactly, however, clamps it there: `npm update` cannot lift an exact override, so the next nanoid security release would be blocked until someone hand-edited this file — a security fix installing a block on the next security fix. Tradeoff: An override would have enforced a floor if some future dependency asked for an older nanoid. That protection is given up here in favour of letting patches flow; a `^3.3.18` override could restore it later without the pin trap. Caveats: Verified after removal — `npm ci` succeeds, nanoid resolves to 3.3.18, the lockfile needs no change, the client builds, and `npm audit` no longer flags nanoid. The parent postcss still carries two HIGH advisories, which is a separate change. Co-authored-by: jonggrang-dev <koko@jonggrang.dev>
|
Thanks for this — the substance checks out, and I've pushed one maintainer edit on top rather than asking you to round-trip it. Verified before touching anything: nanoid What I changed: removed the Two reasons:
After removal: Two notes, neither blocking:
|
Summary
Upgrade nanoid from 3.3.12 to 3.3.18, 5.1.6 to fix CVE-2026-67213.
Vulnerability
CVE-2026-67213client/package-lock.json(dependency:nanoid)Description: nanoid: nanoid: Denial of Service via infinite loop in random ID generation
Evidence
Scanner confirmation: trivy rule
CVE-2026-67213flagged this pattern.Changes
client/package.jsonclient/package-lock.jsonBehavior Preservation
The change is scoped to 2 files on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.
This change addresses a pattern flagged by static analysis. The code path handles user-influenced input and the fix reduces the attack surface against both manual and automated exploitation.
Automated security fix by OrbisAI Security