Skip to content

fix(deps): bump tree-sitter to 0.26 and set sqlx default-features=false to fix RUSTSEC advisories#7031

Merged
codefromthecrypt merged 1 commit intomainfrom
fix-cargo-audit-full
Feb 6, 2026
Merged

fix(deps): bump tree-sitter to 0.26 and set sqlx default-features=false to fix RUSTSEC advisories#7031
codefromthecrypt merged 1 commit intomainfrom
fix-cargo-audit-full

Conversation

@codefromthecrypt
Copy link
Collaborator

@codefromthecrypt codefromthecrypt commented Feb 6, 2026

Summary

Resolve cargo-audit advisories (RUSTSEC-2024-0436 cc, RUSTSEC-2025-0071 ring, RUSTSEC-2024-0XXX sqlx) by upgrading tree-sitter from 0.21 to 0.26 (and all grammar crates to latest), and setting default-features = false on sqlx since goose only uses sqlite.

The remaining rsa advisory (RUSTSEC-2023-0071) comes from sqlx-mysql in the lockfile — cargo-audit can't tell it's unused (rustsec/rustsec#1119), so it's ignored in the workflow.

Type of Change

  • Security fix
  • Refactor / Code quality

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Ran cargo audit and failed on RUSTSEC-2023-0071 as expected, which is a false positive.

A follow-up #7032 will switch from cargo-audit to cargo-deny, which uses the real dependency graph and eliminates this false positive entirely.

Related Issues

#7021 fixes another cargo audit warning

…esolve cargo-audit advisories

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Copilot AI review requested due to automatic review settings February 6, 2026 06:50
@codefromthecrypt codefromthecrypt changed the title fix(deps): upgrade tree-sitter to 0.26 and sqlx default-features to fix RUSTSEC advisories fix(deps): bump tree-sitter to 0.26 and set sqlx default-features=false to fix RUSTSEC advisories Feb 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR resolves multiple cargo-audit security advisories by upgrading tree-sitter from 0.21 to 0.26 (including all language grammar crates) and configuring sqlx to use only sqlite features. The upgrade addresses RUSTSEC-2024-0436 (cc), RUSTSEC-2025-0071 (ring), and sqlx-related advisories.

Changes:

  • Upgraded tree-sitter ecosystem from 0.21 to 0.26 with API migrations
  • Configured sqlx with default-features = false to avoid unused mysql/postgres dependencies
  • Added cargo-audit exception for RUSTSEC-2023-0071 (false positive from unused sqlx-mysql)

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/goose/Cargo.toml Disabled sqlx default features and explicitly enabled sqlite, macros, and migrate features
crates/goose-mcp/Cargo.toml Updated tree-sitter and all language grammar crates to latest versions
crates/goose-mcp/src/developer/analyze/parser.rs Migrated to tree-sitter 0.26 API: LANGUAGE constants, StreamingIterator, type annotations
crates/goose-mcp/src/developer/analyze/languages/*.rs Added u32 casts for child_count() to match new API requirements
crates/goose-mcp/src/developer/analyze/languages/kotlin.rs Updated queries for tree-sitter-kotlin-ng grammar changes
Cargo.lock Updated dependency graph with security fixes
.github/workflows/cargo-audit.yml Added ignore for RUSTSEC-2023-0071 with documentation

@codefromthecrypt codefromthecrypt added this pull request to the merge queue Feb 6, 2026
Merged via the queue into main with commit 81b0a34 Feb 6, 2026
29 of 30 checks passed
@codefromthecrypt codefromthecrypt deleted the fix-cargo-audit-full branch February 6, 2026 10:48
katzdave added a commit that referenced this pull request Feb 6, 2026
…webtoken-10.3.0

* origin/main: (54 commits)
  Switch tetrate tool filtering back to supports_computer_use (#7024)
  feat(ui): add inline rename for chat sessions in sidebar (#6995)
  fix: handle toolnames without underscores (#7015)
  feat(claude-code): use stream-json protocol for persistent sessions (#7029)
  test(providers): add model listing to live provider suite (#7038)
  Agent added too much (#7036)
  fix(deps): bump tree-sitter to 0.26 and set sqlx default-features=false to fix RUSTSEC advisories (#7031)
  feat: add image support and improve error resilience for Codex (#7033)
  fix(providers): Azure OpenAI model listing 404 during configure (#7034)
  fix(deps): bump bat to 0.26.1 to resolve RUSTSEC-2026-0008 (#7021)
  Don't swallow Tetrate errors  (#6998)
  docs: remove hardcoded_stuff links (#7016)
  fix(ui): keep Hub chat input from overlapping SessionInsights on paste (#6719)
  Clean up css (#6944)
  docs: aws bedrock bearer token auth (#6990)
  docs: extended custom provider headers support (#7012)
  feat(cli): add type-to-search filtering to select/multiselect dialogs (#6862)
  feat(ci): add cargo-audit workflow for scanning rust vulnerabilities (#6351)
  feat: add User-Agent header to MCP HTTP requests (#6988)
  chore(deps-dev): bump webpack from 5.102.1 to 5.105.0 in /ui/desktop (#6996)
  ...

# Conflicts:
#	Cargo.lock
zanesq added a commit that referenced this pull request Feb 6, 2026
* origin/main:
  Remove build-dependencies section from Cargo.toml (#6946)
  add /rp-why skill blog post (#6997)
  fix: fix snake_case function names in code_execution instructions (#7035)
  Document max_turns settings for recipes and subagents (#7044)
  feat: update Groq declarative data with Preview Models (#7023)
  fix(codex): propagate extended PATH to codex subprocess (#6874)
  Switch tetrate tool filtering back to supports_computer_use (#7024)
  feat(ui): add inline rename for chat sessions in sidebar (#6995)
  fix: handle toolnames without underscores (#7015)
  feat(claude-code): use stream-json protocol for persistent sessions (#7029)
  test(providers): add model listing to live provider suite (#7038)
  Agent added too much (#7036)
  fix(deps): bump tree-sitter to 0.26 and set sqlx default-features=false to fix RUSTSEC advisories (#7031)
  feat: add image support and improve error resilience for Codex (#7033)
  fix(providers): Azure OpenAI model listing 404 during configure (#7034)
  fix(deps): bump bat to 0.26.1 to resolve RUSTSEC-2026-0008 (#7021)
  Don't swallow Tetrate errors  (#6998)
  docs: remove hardcoded_stuff links (#7016)

# Conflicts:
#	ui/desktop/src/components/GooseSidebar/AppSidebar.tsx
kuccello pushed a commit to kuccello/goose that referenced this pull request Feb 7, 2026
…se to fix RUSTSEC advisories (block#7031)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
…se to fix RUSTSEC advisories (block#7031)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
…se to fix RUSTSEC advisories (block#7031)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
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