Skip to content

fix(datasource-demo-fintech): bump sqlite3 to ^6.0.1 to drop the vulnerable tar chain - #2048

Draft
PMerlet wants to merge 1 commit into
mainfrom
fix/prd-1860-demo-fintech-sqlite3-6
Draft

PMerlet wants to merge 1 commit into
mainfrom
fix/prd-1860-demo-fintech-sqlite3-6

Conversation

@PMerlet

@PMerlet PMerlet commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

fixes PRD-1860

Problem

A fresh npm install of a project generated by forest projects:create:demo reported 15 vulnerabilities (2 low, 4 moderate, 8 high, 1 critical). The critical one is tar <= 7.5.20, reached through @forestadmin/datasource-demo-fintech → sqlite3@5.1.7 → node-gyp@8.4.1 / cacache → tar@6.2.1.

Change

Bump sqlite3 from ^5.1.7 to ^6.0.1 in datasource-demo-fintech (workflow-executor already uses it). yarn.lock is unchanged: the sqlite3@^6.0.1 entry already exists. datasource-sql has no sqlite3 dependency, so it does not pull this chain.

Verification

  • Empty folder, install of @forestadmin/agent@^1, the packed tarball of this branch, @forestadmin/workflow-executor@^1, dotenv@^16: npm audit reports 8 vulnerabilities (5 moderate, 3 high), 0 critical. Remaining ones are zod/uuid/sequelize (PRD-1861). Resolved tree: sqlite3@6.0.1 → tar@7.5.22, node-gyp@12.4.0.
  • From that installed package, createDemoFintechDataSource() boots on macOS arm64 (sqlite3 prebuilt binary) and lists rows from all 8 collections.
  • yarn workspace @forestadmin/datasource-demo-fintech test: 2/2 pass.

Out of scope: zod, uuid, sequelize (PRD-1861).

🤖 Generated with Claude Code

Note

Bump sqlite3 to ^6.0.1 in datasource-demo-fintech to drop vulnerable tar chain

Updates the sqlite3 dependency range from ^5.1.7 to ^6.0.1 in package.json. Risk: sqlite3 6.x is a major version bump; check for breaking API changes before merging.

Macroscope summarized 090f2b9.

…erable tar chain

sqlite3@5 pulled node-gyp@8 / cacache and tar@6.2.1 (critical advisory,
tar <= 7.5.20) into every project generated by projects:create:demo.
sqlite3@6 depends on tar ^7.5.10 and no longer needs that chain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Oct 29, 2026

Copy link
Copy Markdown

PRD-1860

@qltysh

qltysh Bot commented Oct 29, 2026

Copy link
Copy Markdown

Qlty


Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

This branch has not been deployed

No deployments
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