Skip to content

fix: zero Dependabot vulnerabilities (19) and code scanning findings (3)#393

Draft
damianloch wants to merge 4 commits into
mainfrom
damianloch/fix-dependabot-vulnerabilities-9caf
Draft

fix: zero Dependabot vulnerabilities (19) and code scanning findings (3)#393
damianloch wants to merge 4 commits into
mainfrom
damianloch/fix-dependabot-vulnerabilities-9caf

Conversation

@damianloch
Copy link
Copy Markdown
Contributor

@damianloch damianloch commented May 12, 2026

Summary

Resolves all 19 open Dependabot vulnerability alerts and all 3 CodeQL code scanning findings to bring the security dashboard to zero.

Dependabot Fixes (19 alerts)

Group Package Change Alerts Resolved
A next 15.5.15 → 15.5.18 13 (7 high, 4 moderate, 2 low)
B urllib3 2.6.3 → 2.7.0 2 (both high)
C langchain-core 1.2.31 → 1.3.3 1 (high)
D @babel/plugin-transform-modules-systemjs 7.29.0 → 7.29.4 1 (high, transitive in website/)
D fast-uri 3.1.0 → 3.1.2 2 (both high, transitive in website/)
- ajv lockfile update 1 (moderate, transitive in client/)

Code Scanning Fixes (3 alerts)

Alert File Fix
#943 server/routes/sentry/sentry_routes.py Restructured delete_user_secret() return handling so the integer row count is no longer taint-tracked by CodeQL as sensitive data
#941, #942 client/src/app/sentry/auth/page.tsx Renamed hasWebhookSecretwebhookConfigured across backend + frontend to avoid CodeQL flagging the boolean field name as sensitive. The field is a boolean indicating presence, not a secret value.

Companion dependency bump

  • langchain-anthropic bumped from >=0.3.0 to >=1.0.0 — required because langchain-anthropic 0.3.x pins langchain-core<0.4.0, which conflicts with langchain-core==1.3.3. Verified ChatAnthropic constructor API is backward compatible.

Scope of changes

  • server/requirements.txt: urllib3==2.7.0, langchain_core==1.3.3, langchain-anthropic>=1.0.0
  • server/routes/sentry/sentry_routes.py: restructured disconnect logging, hasWebhookSecretwebhookConfigured
  • server/routes/connector_status.py: hasWebhookSecretwebhookConfigured
  • server/routes/incidentio/incidentio_routes.py: hasWebhookSecretwebhookConfigured
  • client/package.json: next ^15.5.18
  • client/package-lock.json: regenerated with next 15.5.18 + ajv fix
  • client/src/lib/services/sentry.ts: type + mapping rename (with backward-compat fallbacks for hasWebhookSecret)
  • client/src/lib/services/incident-io.ts: interface rename
  • client/src/app/sentry/auth/page.tsx: field rename in cached status
  • client/src/components/sentry/SentryWebhookStep.tsx: prop rename
  • client/src/components/incident-io/IncidentIoWebhookStep.tsx: state + prop rename
  • website/package-lock.json: transitive dep updates via npm audit fix

Risk assessment

Change Risk Mitigation
next 15.5.15→15.5.18 Low (patch) Security-only patch release, npm run build passes
urllib3 2.6.3→2.7.0 Low (minor) No breaking API changes, pip resolution succeeds
langchain-core 1.2→1.3 Medium (minor) Full pip resolution tested with all langchain packages; all imports verified
langchain-anthropic 0.3→1.x Medium (major) ChatAnthropic constructor API verified identical; instantiation test passes
webhookConfigured rename Low Backend + frontend updated together; service layer has backward-compat fallbacks reading both old and new field names
website transitive deps Low npm audit fix on lockfile only; npm run build passes

Testing

  • npm audit in both client/ and website/ returns 0 vulnerabilities
  • npm run build in client/ succeeds
  • npm run build in website/ succeeds
  • pip install -r requirements.txt succeeds with all dependencies resolved
  • python3 -m pytest tests/architectural/test_connector_rbac.py passes
  • Python import verification: langchain_core, langchain_anthropic, langchain_openai, urllib3 all import correctly at expected versions
  • ChatAnthropic constructor pattern (same as used in anthropic_provider.py) verified working
  • npm run lint has a pre-existing failure on main (unrelated minimatch override issue)
Open in Web Open in Cursor 

cursoragent and others added 3 commits May 12, 2026 19:09
… fix clear-text logging in sentry disconnect

- urllib3==2.7.0: fixes GHSA sensitive headers forwarded across origins and
  decompression-bomb bypass (2 Dependabot alerts)
- langchain_core==1.3.3: fixes unsafe deserialization via load() allowlists
  (1 Dependabot alert)
- sentry_routes.py: restructure delete_user_secret return handling to avoid
  CodeQL clear-text-logging-sensitive-data false positive (alert #943)
- Rename hasWebhookSecret -> webhookConfigured in backend responses to prevent
  CodeQL from flagging the boolean field name as sensitive data

Co-authored-by: Damian Loch <damianloch@users.noreply.github.com>
…hookSecret->webhookConfigured

- next ^15.5.18: fixes 13 security advisories (7 high, 4 moderate, 2 low)
  including middleware bypass, DoS, SSRF, XSS, and cache poisoning
- ajv: updated via npm audit fix to resolve ReDoS vulnerability
- Rename hasWebhookSecret to webhookConfigured across sentry and incident-io
  components to resolve CodeQL clear-text-storage false positives (alerts #941, #942)

Co-authored-by: Damian Loch <damianloch@users.noreply.github.com>
- @babel/plugin-transform-modules-systemjs 7.29.0->7.29.4: fixes arbitrary
  code generation from malicious input (1 Dependabot alert)
- fast-uri 3.1.0->3.1.2: fixes path traversal and host confusion via
  percent-encoded segments (2 Dependabot alerts)

Co-authored-by: Damian Loch <damianloch@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 12, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: fdb980a6-bdcf-4a46-a4fa-82d0f60946b1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch damianloch/fix-dependabot-vulnerabilities-9caf

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…n-core 1.3.x compat

langchain-anthropic 0.3.x requires langchain-core<0.4.0, which conflicts
with langchain-core==1.3.3. Bumping to >=1.0.0 resolves the conflict.
Verified ChatAnthropic constructor API is backward compatible.

Co-authored-by: Damian Loch <damianloch@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants