Repository navigation
chore: resolve dependabot alerts 145 to 150 - #1433
Conversation
Override re2js to ^2.8.7 and minimatch to ^11.0.4 (along with @electron/asar ^4.3.1, @electron/asar>glob ^14.0.3, and @electron/universal ^3.0.6) in the root package, and vendor shadcn/tailwind.css into frontend/src/app/shadcn-tailwind.css so the shadcn CLI devDependency (and its transitive minimatch and deepmerge dependencies) can be removed from frontend/package.json. Fixes #1429
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoResolve Dependabot alerts in root and frontend dependencies
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships |
Intent
Investigate and resolve the 4 open Dependabot security alerts on https://github.com/FreeOpenSourcePOS/FloCafe/security/dependabot (tracked in #1429):
package-lock.json):re2jsquadratic-time denial of service inre2jslookbehind matching (>= 2.2.0, < 2.8.7, first patched2.8.7).package-lock.json):minimatchpotential denial of service via globparts amplification (< 11.0.1, first patched11.0.1).frontend/package-lock.json):minimatchpotential denial of service via globparts amplification (< 11.0.1, first patched11.0.1).frontend/package-lock.json):deepmergemergeObject()allows prototype poisoning of returned objects (>= 4.2.0, <= 4.3.1, no upstream patch indeepmerge).Follow the Obra Superpowers engineering procedure end-to-end (research, spec/plan under
~/tools/firstmate/data/flocafe-security-alerts-145-150-r1/, TDD/verification, andno-mistakesvalidation pipeline). Keep PR title<= 50chars, single-line PR body paragraphs, and includeFixes #1429.What Changed
package.jsonandfrontend/package.jsonforre2js(^2.8.7),minimatch(^11.0.4),@electron/asar(^4.3.1withglob^14.0.3), and@electron/universal(^3.0.6), and updated both lockfiles.shadcnCLI devDependency fromfrontend/package.json(eliminating transitivedeepmerge), vendoredfrontend/src/app/shadcn-tailwind.css, and updatedfrontend/src/app/globals.cssanddocs/architecture/frontend.md.Fixes #1429
Risk Assessment
✅ Low: Well-bounded dependency overrides and local CSS vendoring that cleanly eliminate all four Dependabot vulnerabilities (#145, #147, #149, #150) across both lockfiles without altering runtime application behavior.
Testing
Installed clean dependencies from both lockfiles (
0 vulnerabilitiesin root and frontend), verified thatre2jsresolves to2.9.1,minimatchresolves to11.0.4,@electron/asarresolves to4.3.1,@electron/universalresolves to3.0.6, andshadcn/minimatch/deepmergeare absent fromfrontend, drove adversarial DoS payloads againstre2jsandminimatch(~6ms and ~2.7ms respectively), verified@electron/asararchive packing/unpacking, rannpm run test:daily-sales-export(248/248 passing),npm run test:release-config,npm run test:lint-engine, andnpm run docs:check, and drove the built static frontend against the live backend in headless Chromium to capture visual evidence of/auth/loginand/posstyled by the vendoredshadcn-tailwind.css.Evidence: Adversarial DoS and @electron/asar packaging verification
{"check":"re2js-lookbehind-dos","version":"2.9.1","matched":false,"elapsedMs":6.08} {"check":"minimatch-globparts-dos","version":"11.0.4","mmResult":true,"elapsedMs":2.7} {"check":"electron-asar-pack-unpack","version":"4.3.1","files":["/index.js","/sub","/sub/native.node"],"extractedJs":"console.log("hello");"}Evidence: Root and frontend resolved dependency trees
=== ROOT DEPENDENCY TREE === [email protected] ~/.no-mistakes/worktrees/de2296f2e6f8/01M6H7MGH6FZ4K5MMHCJQD2841 ├─┬ [email protected] │ └─┬ [email protected] │ ├─┬ @electron/[email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] deduped │ │ └── [email protected] deduped │ ├─┬ @electron/[email protected] │ │ └── @electron/[email protected] deduped │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] deduped │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── @electron/[email protected] deduped │ └── [email protected] ├─┬ [email protected] │ └─┬ [email protected] │ ├─┬ [email protected] │ │ └─┬ [email protected] │ │ └── [email protected] deduped │ └─┬ [email protected] │ └── [email protected] deduped └─┬ [email protected] └─┬ [email protected] └── [email protected] === FRONTEND DEPENDENCY TREE === [email protected] ~/.no-mistakes/worktrees/de2296f2e6f8/01M6H7MGH6FZ4K5MMHCJQD2841/frontend └── (empty)Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm ci && npm --prefix frontend cinpm ls re2js minimatch deepmerge @electron/asar @electron/universal --allnpm --prefix frontend ls re2js minimatch deepmerge shadcn --allnpm run build && npm run build:frontendnpm run test:daily-sales-exportnpm run test:release-confignpm run test:lint-enginenpm run docs:checknode adversarial-and-packaging-checks (re2js lookbehind DoS, minimatch globparts DoS, @electron/asar createPackageWithOptions/extractAll)Playwright Chromium live verification against tests/e2e-server.cjs on /auth/login and /pos✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.