Skip to content

security: resolve npm Dependabot alerts, add npm ecosystem to Dependabot#399

Merged
mmcky merged 1 commit into
mainfrom
security/npm-audit-fixes
Jun 9, 2026
Merged

security: resolve npm Dependabot alerts, add npm ecosystem to Dependabot#399
mmcky merged 1 commit into
mainfrom
security/npm-audit-fixes

Conversation

@mmcky

@mmcky mmcky commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolves all 4 open Dependabot security alerts plus one additional npm audit finding. All affected packages are transitive devDependencies under webpack-dev-server (local dev / CI build only) — nothing in the shipped theme assets or Python package changes.

Lockfile updates (npm audit fix, all semver-compatible)

Alert Package Change Advisory
#77 (critical) shell-quote 1.8.1 → 1.8.4 GHSA-w7jw-789q-3m8p
#76 qs 6.14.2 → 6.15.2 GHSA-q8mj-m7cp-5q26
#73 webpack-dev-server 5.2.2 → 5.2.4 GHSA-79cf-xcqc-c78w
— (npm audit) ws 8.18.0 → 8.21.0 GHSA-58qx-3vcg-4xpx

Alert #75 (uuid) — dismissed, not patched

sockjs pins uuid@^8 so no compatible patched version exists, and the vulnerable code is unused: the advisory (GHSA-w5hq-g745-h8pq) affects v3/v5/v6 with a caller-provided buf, while sockjs only calls uuid.v4() with no arguments. Dismissed on the alert with reason vulnerable code is not actually used.

Dependabot config

Added an npm package-ecosystem entry to dependabot.yml (monthly, grouped into a single PR) — previously only github-actions was covered, which is why these alerts never got automatic fix PRs.

Verification

  • npm run build succeeds; webpack emits identical assets ("compared for emit")
  • npm audit reports 0 vulnerabilities outside the dismissed uuid/sockjs chain

🤖 Generated with Claude Code

…ndabot config

npm audit fix (all semver-compatible, devDependencies only):
- webpack-dev-server 5.2.2 -> 5.2.4 (GHSA-79cf-xcqc-c78w)
- shell-quote 1.8.1 -> 1.8.4 (GHSA-w7jw-789q-3m8p, critical)
- qs 6.14.2 -> 6.15.2 (GHSA-q8mj-m7cp-5q26)
- ws 8.18.0 -> 8.21.0 (GHSA-58qx-3vcg-4xpx)

The uuid alert (GHSA-w5hq-g745-h8pq) is dismissed rather than patched:
sockjs pins uuid@^8 and only calls uuid.v4(); the advisory affects
v3/v5/v6 with a caller-provided buf, so the vulnerable code is unused.

Also adds an npm package-ecosystem entry to dependabot.yml (monthly,
grouped) so future npm advisories get automatic fix PRs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 9, 2026 23:00
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot temporarily deployed to pull request June 9, 2026 23:01 Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 addresses Dependabot/npm audit security findings by updating transitive npm devDependency packages (primarily under webpack-dev-server) and adds Dependabot coverage for the npm ecosystem so future npm updates are automated.

Changes:

  • Updated package-lock.json to pick up patched transitive dependency versions (e.g., webpack-dev-server, shell-quote, qs, ws).
  • Documented the dependency/security maintenance work in the changelog under Unreleased → CI.
  • Expanded .github/dependabot.yml to include monthly npm version updates, grouped into a single PR.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
package-lock.json Lockfile-only updates to pull in patched transitive npm dev/build-time dependencies.
CHANGELOG.md Notes the Dependabot/npm audit remediation and new npm Dependabot coverage under Unreleased CI.
.github/dependabot.yml Adds npm ecosystem updates (monthly) with grouping to reduce PR noise.

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@875b967). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #399   +/-   ##
=======================================
  Coverage        ?   47.75%           
=======================================
  Files           ?        2           
  Lines           ?      423           
  Branches        ?        0           
=======================================
  Hits            ?      202           
  Misses          ?      221           
  Partials        ?        0           
Flag Coverage Δ
pytests 47.75% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🎭 Visual Regression Test Results

passed  103 passed
skipped  3 skipped

Details

stats  106 tests across 1 suite
duration  3 minutes, 38 seconds
commit  f43fa58

Skipped tests

desktop-chrome › theme.spec.ts › Visual Regression Tests › prob-matrix - full page screenshot
mobile-chrome › theme.spec.ts › Visual Regression Tests › prob-matrix - full page screenshot
mobile-chrome › theme.spec.ts › Theme Features › f-string interpolation styling

@mmcky mmcky merged commit c6d21f7 into main Jun 9, 2026
13 checks passed
@mmcky mmcky deleted the security/npm-audit-fixes branch June 9, 2026 23:07
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