Skip to content

fix(security): close dependabot and codeql alerts - #338

Merged
ascender1729 merged 1 commit into
masterfrom
fix/security-alerts
Aug 25, 2026
Merged

fix(security): close dependabot and codeql alerts#338
ascender1729 merged 1 commit into
masterfrom
fix/security-alerts

Conversation

@ascender1729

Copy link
Copy Markdown
Member

Closes the open Dependabot alerts on both manifests and the 10 open CodeQL alerts.

Root (npm): astro ^5.18.2, svelte ^5.55.7, vitest and @vitest/ui ^4.1.11, happy-dom ^20.11.6, plus an npm override sharp >=0.35.0; npm audit fix pulled vite 6.4.3, devalue, h3, defu, js-yaml, nanoid, picomatch, postcss, smol-toml, svgo, ws, yaml, brace-expansion, flatted and @babel/core to patched versions. Template (pnpm): next 15.5.21, postcss ^8.5.23, and pnpm overrides (caret ranges, no major bumps) for tar, sharp, minimatch, brace-expansion, cross-spawn, flatted, picomatch, nanoid, js-yaml, ajv, micromatch, mdast-util-to-hast. No lockfile was removed; root stays on npm and the template stays on pnpm.

CodeQL: top-level permissions added to ci.yml and pr-checks.yml (contents: read) and hacktoberfest.yml (issues: write, the only thing github-script does there). getBodyPreview now strips HTML tags in a loop until the string is stable so split tags like <<script>script> cannot survive one pass; a regression test covers it. The export test helper now escapes backslashes as well as closing brackets.

Verification (Windows, node 22.21.1, npm 10.9.4, pnpm 10.32.1):
npm audit --audit-level=low: 2 remaining, both astro (GHSA range <= 7.0.9, first patched 7.1.0). Closing them needs astro 5 -> 7, two majors; left out per the no-major-bump rule.
npx tsc --noEmit: pass. npm run build: pass (2 pages). npx vitest run: 520 passed, 1 failed. The failure (time-utils "6 months ago" for 180 days) fails identically on master with no changes, so it is pre-existing and not touched here.
npm run lint reports only CRLF (Delete \r) errors from the Windows checkout; eslint on the two changed source files is clean.
pnpm audit in magicuidesign-devtool-template: No known vulnerabilities found. pnpm build: pass (7 pages).

Left open: the astro alerts listed above (need a major upgrade and a compatibility pass on @astrojs/react, @astrojs/svelte and @unocss/astro). An esbuild >=0.28.1 override was tried and reverted because esbuild 0.28 refuses the es2020 destructuring transform astro 5 requests; that advisory is low and not in the Dependabot set.

Root: bump astro, svelte, vitest, @vitest/ui, happy-dom; npm audit fix;
override sharp >=0.35.0. Astro <=7.0.9 advisories stay open (need 5->7).
Template: next 15.5.21, postcss ^8.5.23, pnpm caret overrides for tar,
sharp, minimatch, brace-expansion, cross-spawn, flatted, picomatch,
nanoid, js-yaml, ajv, micromatch, mdast-util-to-hast. pnpm audit clean.
CodeQL: least-privilege permissions on all three workflows; loop HTML
tag stripping in getBodyPreview until stable; escape backslash in the
export test helper. Adds a regression test for the tag-strip loop.
@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c4cd9633-d67d-4a2b-9d2f-8539c40bcade


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying issueflow with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6ac5822
Status: ✅  Deploy successful!
Preview URL: https://b0594ca0.issueflow.pages.dev
Branch Preview URL: https://fix-security-alerts.issueflow.pages.dev

View logs

@ascender1729
ascender1729 marked this pull request as ready for review August 25, 2026 16:56
@ascender1729
ascender1729 merged commit 43163c5 into master Aug 25, 2026
11 checks passed
@ascender1729
ascender1729 deleted the fix/security-alerts branch August 25, 2026 17:00
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