Repository navigation
Fix Dependabot security alerts (backend + frontend) - #6
Merged
Merged
Conversation
- Regenerate backend/requirements.txt (pip-compile --upgrade) to pull in patched pymongo (4.20.0), dnspython (2.9.2), anyio (4.16.0), and black (26.10.1), resolving the high/critical BSON OOB read, DNS parsing CPU/memory exhaustion, TLS hostname spoofing, and GH Action version-pinning advisories. - Run `npm audit fix` in frontend to update transitive deps (brace-expansion, js-yaml, baseline-browser-mapping, colord, etc.), cutting frontend vulnerabilities from 51 to 33 with no breaking changes. Remaining frontend alerts all live inside react-scripts' dev-time build toolchain (webpack-dev-server, jest, svgo, postcss, workbox) and have no non-breaking fix available under react-scripts@5.0.1 (create-react-app is unmaintained). Fixing them requires migrating off react-scripts, which is a separate, larger effort. Verified: backend unit + integration tests pass, frontend builds successfully, and a manual smoke test of the API (create/list task) works end to end. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
6 tasks done
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
backend/requirements.txtviapip-compile --upgradeto pick up patched versions:pymongo==4.20.0(fixes #297, BSON OOB read),dnspython==2.9.2(fixes #298, #300, DNS parsing CPU/memory exhaustion),anyio==4.16.0(fixes #275, #276, including the TLS hostname-spoofing advisory), andblack==26.10.1(fixes #292).npm audit fixinfrontend/to update vulnerable transitive deps with no breaking changes.overridesinfrontend/package.jsonto force further transitive deps to patched versions thatnpm audit fixcouldn't bump on its own:nth-check,postcss,serialize-javascript,qs,uuid,@tootallnate/once.Combined, these cut the frontend from 51 → 17 vulnerabilities, with zero breaking changes to the build or dev server.
What's intentionally left unfixed (and why)
The remaining ~17 frontend alerts all live inside
react-scripts@5.0.1's pinned build toolchain, and none have a safe fix available:webpack-dev-server/webpack-dev-middleware: patched majors (v5/v7) remove theonAfterSetupMiddleware/onBeforeSetupMiddlewareoptions thatreact-scripts' dev server config still relies on — overriding to the patched version breaksnpm startoutright (verified).svgo/@svgr/plugin-svgo:@svgr/plugin-svgo@5.5.0depends onsvgo's old synchronous/callback API, which was removed insvgo@2.x— overriding breaks SVG icon imports during the build.jest/workbox-*family: tightly coupled toreact-scripts' bundled test runner/service-worker tooling; no service worker is actually registered in this app (src/index.js), soworkbox-buildexposure is build-time only and unused at runtime.deepmerge: no patched version has been published upstream yet (first_patched_version: null).Fully resolving these requires migrating off Create React App (archived/unmaintained since 2022), e.g. to Vite — a larger, separate effort worth scoping on its own rather than bundling into a dependency-bump PR.
Test plan
python tests/test_runtime.pypasses (offline unit test)pytest tests/test_integration.py -vpasses against a local MongoDB (6/6)npm run buildsucceeds infrontend/npm startdev server boots and serveshttp://localhost:3000successfully with the new overrides/task/API successfully🤖 Generated with Claude Code