chore(deps): fix security audit findings (backend 33→22 incl. critical, frontend 40→0)#139
Merged
recabasic merged 3 commits intoJun 10, 2026
Conversation
…->0) Addresses the automated security audit issues (CaviraOSS#138 and earlier). Backend (npm audit fix --legacy-peer-deps): - Clears the critical protobufjs advisory and 4 highs (fast-xml-parser/builder, @xmldom/xmldom, underscore chains) - 33 -> 22 vulnerabilities; tsc build verified clean Frontend (pnpm update within semver + concurrently 9->10 devDep): - Clears all 40 advisories including the critical shell-quote one (concurrently 9.x pins shell-quote 1.8.3; v10 ships 1.8.4) - 40 -> 0 vulnerabilities; vite build verified clean The 22 remaining backend advisories all require maintainer decisions: - 9 come through @keyv/sqlite -> sqlite3 -> node-gyp/tar (install-time toolchain of an unmaintained package) - 13 require the langchain 0.3 -> 1.x major migration
Plain `npm install` fails with ERESOLVE on the pre-existing openai@6 vs @browserbasehq/stagehand (peer openai@^4) conflict, which is why the CI pipeline fails intermittently on main. This makes installs deterministic for CI and contributors until the conflict is resolved upstream.
…rides sqlite3@5.1.7 (final release, unmaintained) pulls node-gyp 8.x with vulnerable tar/cacache/make-fetch-happen. Pinning the toolchain to current patched versions clears 6 of the 7 remaining high advisories. tsc build verified; sqlite3 installs via prebuilt binaries so the node-gyp bump only affects the source-build fallback path. The last high (langsmith) plus 9 moderates all sit behind the langchain 0.3 -> 1.x migration and are left for a dedicated PR.
Contributor
Author
|
Two follow-up commits after watching CI:
Backend now: 33 → 10 (1 high + 9 moderate) — everything left sits behind the LangChain 0.3 → 1.x migration (incl. the Remaining CI reds are environmental: the "Dependency Vulnerability Check" gate ( |
recabasic
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Works through the automated security audit findings from #138 (and the earlier weekly issues #135/#134/#133).
Backend: 33 → 22 advisories (critical eliminated) · Frontend: 40 → 0
Backend (
npm audit fix --legacy-peer-deps)protobufjsadvisory and 4 highs (fast-xml-parser/fast-xml-builder,@xmldom/xmldom,underscore,cacachechains) plus assorted moderates — all within existing semver ranges.--legacy-peer-depsmatches the repo's current install reality: the lockfile already contains anopenai@6vs@browserbasehq/stagehand(openai@^4peer) conflict that a strictnpm installrefuses to resolve.npm run build(tsc) clean.The 22 that remain need maintainer decisions
@keyv/sqlite→sqlite3chain (9 advisories, all install-time) —sqlite3@5.1.7is the final release of an unmaintained package; thenode-gyp/tar/make-fetch-happenadvisories live in its build toolchain, not the runtime. Options: switch the Keyv store tobetter-sqlite3-based storage, or accept the risk as install-time-only.langsmithhighs) — a real API migration, too invasive to bundle into an audit PR. Happy to attempt it as a separate PR if wanted.Frontend
pnpm updatewithin existing semver ranges clears 39 of 40 (react-router XSS/DoS series, minimatch/picomatch ReDoS, flatted, postcss, rollup, etc.).shell-quote1.8.3 — is exactly pinned byconcurrently@9.x, soconcurrentlyis bumped 9 → 10 (dev-only script runner; v10 shipsshell-quote1.8.4).pnpm run build(tsc + vite) clean.Verification
npm run buildexit 0pnpm audit→ "No known vulnerabilities found";pnpm run buildexit 0