Skip to content

Fix Dependabot security alerts (backend + frontend) - #6

Merged
sis0k0 merged 1 commit into
mainfrom
fix/dependabot-security-alerts
Nov 15, 2026
Merged

sis0k0 merged 1 commit into
mainfrom
fix/dependabot-security-alerts

Conversation

@sis0k0

@sis0k0 sis0k0 commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Regenerate backend/requirements.txt via pip-compile --upgrade to 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), and black==26.10.1 (fixes #292).
  • Run npm audit fix in frontend/ to update vulnerable transitive deps with no breaking changes.
  • Add targeted overrides in frontend/package.json to force further transitive deps to patched versions that npm audit fix couldn'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 the onAfterSetupMiddleware/onBeforeSetupMiddleware options that react-scripts' dev server config still relies on — overriding to the patched version breaks npm start outright (verified).
  • svgo / @svgr/plugin-svgo: @svgr/plugin-svgo@5.5.0 depends on svgo's old synchronous/callback API, which was removed in svgo@2.x — overriding breaks SVG icon imports during the build.
  • jest/workbox-* family: tightly coupled to react-scripts' bundled test runner/service-worker tooling; no service worker is actually registered in this app (src/index.js), so workbox-build exposure 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.py passes (offline unit test)
  • pytest tests/test_integration.py -v passes against a local MongoDB (6/6)
  • npm run build succeeds in frontend/
  • npm start dev server boots and serves http://localhost:3000 successfully with the new overrides
  • Manual smoke test: started the backend against local MongoDB, created and listed a task via the /task/ API successfully
  • CI workflow steps (runtime smoke test + integration tests) verified locally with the updated lockfiles

🤖 Generated with Claude Code

- 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>
@sis0k0
sis0k0 requested a review from a team as a code owner November 15, 2026 07:20
@sis0k0
sis0k0 merged commit 15ac198 into main Nov 15, 2026
5 checks passed
@sis0k0
sis0k0 deleted the fix/dependabot-security-alerts branch November 15, 2026 07:24
@sis0k0 sis0k0 mentioned this pull request Nov 15, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant