Skip to content

chore: fix open Dependabot security alerts - #470

Merged
dferber90 merged 1 commit into
mainfrom
fix/dependabot-security-alerts
Aug 11, 2026
Merged

chore: fix open Dependabot security alerts#470
dferber90 merged 1 commit into
mainfrom
fix/dependabot-security-alerts

Conversation

@dferber90

Copy link
Copy Markdown
Collaborator

Resolves 18 of the 20 open Dependabot alerts.

All of the affected packages are transitive dev/build dependencies (docs site, examples, tooling) except nanoid, which is a direct dependency of two examples. Fixed with pnpm.overrides in the root package.json plus direct bumps in examples/shirt-shop and examples/snippets.

Package From To Alerts
nanoid (>= 4) 5.1.2 5.1.16 #973–#978
brace-expansion (>= 4) 5.0.8 5.0.9 #960
dompurify 3.4.12 3.4.13 #972
fast-uri 3.1.4 3.1.5 #962
js-yaml (3.x / 4.x) 3.15.0 / 4.3.0 3.15.1 / 4.3.1 #968, #969
mermaid 11.16.0 11.16.1 #963–#967
postcss 8.5.22 8.5.26 #961
@sveltejs/kit 2.70.1 2.70.2 #970

js-yaml and brace-expansion use range-scoped overrides so the still-supported older major lines aren't force-upgraded across a breaking boundary.

Left unaddressed

  • image-size (#979, #980, both high) — no patched version exists yet (<= 2.0.2 is the vulnerable range and 2.0.2 is latest). Both are DoS-via-malformed-image issues in the ICNS/JXL/HEIF parsers; it is only reached at build time by the docs site, which parses images we control.

Incidental

The lockfile refresh also re-resolved the root react: "canary" devDependency (the canary tag moved and minimumReleaseAge filters out the newest builds). Unrelated to the security fixes, but unavoidable when re-resolving.

Verification

pnpm build (24/24 tasks) and pnpm test (17/17 tasks) both pass.

🤖 Generated with Claude Code

Bumps the vulnerable transitive dependencies flagged by Dependabot via
pnpm overrides, and the direct nanoid dependency in the examples.

- nanoid >= 4 -> ^5.1.16 (GHSA infinite loop on negative/zero size)
- brace-expansion >= 4 -> ^5.0.9 (DoS via unbounded intermediate arrays)
- dompurify -> ^3.4.13 (XSS via detached subtree after IN_PLACE hook removal)
- fast-uri -> ^3.1.5 (host confusion via backslash authority introducer)
- js-yaml 3 -> ^3.15.1, js-yaml 4 -> ^4.3.1 (quadratic CPU in !!omap)
- mermaid -> ^11.16.1 (DoS, prototype pollution, CSS injection)
- postcss -> ^8.5.23 (arbitrary .map file read via sourceMappingURL)
- @sveltejs/kit -> ^2.70.2 (ReDoS in Accept header content negotiation)

image-size (alerts #979, #980) has no patched release yet, so it is left
as-is. It is only used at build time by the docs site.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flags-playground Ready Ready Preview Aug 11, 2026 6:11pm
flags-sdk-dev Ready Ready Preview Aug 11, 2026 6:11pm
flags-sdk-snippets Ready Ready Preview Aug 11, 2026 6:11pm
flags-sdk-sveltekit-snippets Ready Ready Preview Aug 11, 2026 6:11pm
shirt-shop Ready Ready Preview Aug 11, 2026 6:11pm
shirt-shop-api Ready Ready Preview Aug 11, 2026 6:11pm

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​nanoid@​5.1.161001007995100
Addednpm/​postcss@​8.5.261001008295100
Addednpm/​react@​19.3.0-canary-fef12a01-202604131001008497100

View full report

@dferber90
dferber90 enabled auto-merge (squash) August 11, 2026 18:13
@dferber90
dferber90 requested a review from a team August 11, 2026 18:14
@dferber90
dferber90 merged commit 2532e99 into main Aug 11, 2026
22 checks passed
@dferber90
dferber90 deleted the fix/dependabot-security-alerts branch August 11, 2026 18:14
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