Fix NPM vulnerabilities and add WorthlessCounter to webapp template - #122
Merged
Conversation
Updated canvas (3.0.1 → 3.2.0) and jsdom (26.0.0 → 27.0.0) to address: - Critical: form-data unsafe random function (GHSA-fjxv-7rqg-78g4) - High: tar-fs directory traversal (GHSA-8cj5-5rvv-wf4v) Reduces total vulnerabilities from 9 to 5 (all remaining are moderate dev-only). Production dependencies have 0 vulnerabilities. Fixes #118 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
littlebee
commented
Sep 30, 2025
littlebee
left a comment
Owner
Author
There was a problem hiding this comment.
I tested out the changes on a fresh bb_create project. The "high" and "critical" are both now fixed.
There are still 5 moderate vulnerabilities. These are all originating in esbuild coming up from vitest. The change that Claude recommended for this was to use npm overrides to set the version of esbuild without upgrading vitest.
I'm not sure I like the alternative of upgrading vitest and migrating tests. Ultimately, it will be necessary to upgrade the version of Vite and ViteTest used by the example web app, but this does not feel like the correct PR. That is something that should be planned and have an issue and PR of its own.
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
This PR fixes critical and high severity NPM vulnerabilities in the webapp template and adds a WorthlessCounter example component demonstrating bi-directional state control.
NPM Vulnerability Fixes (Issue #118)
Updated webapp template dependencies to address security vulnerabilities:
canvas: ^3.0.1 → ^3.2.0jsdom: ^26.0.0 → ^27.0.0Vulnerabilities Fixed:
Results:
Test plan
npm installon fresh project created bybb_createnpm auditshows reduced vulnerabilitiesnpm run buildsucceedsnpm testpassesFixes #118
🤖 Generated with Claude Code