Skip to content

fix(deps): clear the five high advisories failing the Security workflow - #144

Merged
jdevalk merged 1 commit into
mainfrom
fix/npm-audit-high-2026-07-31
Jul 31, 2026
Merged

fix(deps): clear the five high advisories failing the Security workflow#144
jdevalk merged 1 commit into
mainfrom
fix/npm-audit-high-2026-07-31

Conversation

@jdevalk

@jdevalk jdevalk commented Jul 31, 2026

Copy link
Copy Markdown
Owner

npm audit --audit-level=high has been failing on main and on every PR, so the Security workflow has been mailing a failure on each push while gating nothing — a check that is always red stops carrying information.

What was failing

Five high advisories, all transitive, all in the build toolchain:

Package Advisory
brace-expansion GHSA-3jxr-9vmj-r5cp, GHSA-mh99-v99m-4gvg — DoS via exponential expansion / OOM
fast-uri GHSA-v2hh-gcrm-f6hx, GHSA-4c8g-83qw-93j6 — host confusion
js-yaml GHSA-52cp-r559-cp3m — quadratic CPU on merge-key chains
postcss GHSA-r28c-9q8g-f849 — path traversal via sourceMappingURL
svgo GHSA-2p49-hgcm-8545removeScripts leaves some scripts intact

The fix

npm audit fix — no --force. All five resolved within existing semver ranges, so the diff is package-lock.json only: no package.json change, no version pins moved, nothing for anyone to re-review. Now reports found 0 vulnerabilities.

Resolved to brace-expansion@5.0.9, fast-uri@3.1.5, js-yaml@4.3.0, postcss@8.5.25, svgo@4.0.2.

Verified after the bump

npm run lint ✓ · npm run format:check ✓ · npm run check ✓ (0 errors, 0 warnings) · npm run test:websub ✓ · npm run build ✓ · npm run check:skill ✓ (166 pages, MCP 2026-07-28)

postcss and svgo sit in the Tailwind and image-generation paths respectively, so the build passing is the meaningful signal here, not a formality.

Worth knowing

These are all dev dependencies. The site is static, so none of this ever reached a visitor — the exposure was to the build, not to production. That is why the gate at --audit-level=high was the right severity and why clearing it is cheap; I have deliberately not touched the threshold. The four remaining moderate advisories still surface without blocking, exactly as the comment in security.yml intends.

🤖 Generated with Claude Code

`npm audit --audit-level=high` has been failing on main and on every PR,
so the Security workflow mailed a failure on each push while gating nothing.

Five high advisories, all transitive, all in the build toolchain:
brace-expansion (2 DoS), fast-uri (2 host-confusion), js-yaml (quadratic
CPU on merge-key chains), postcss (path traversal via sourceMappingURL),
svgo (removeScripts leaves some scripts intact).

`npm audit fix` resolved all five within existing semver ranges — the diff
is package-lock.json only, no package.json change and no --force. Now
reports 0 vulnerabilities.

Verified after the bump: lint, format:check, check (0 errors), test:websub,
build, check:skill (166 pages) all pass.

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

Copy link
Copy Markdown

Deploying specification-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 77d7515
Status: ✅  Deploy successful!
Preview URL: https://6bf74c10.specification-website.pages.dev
Branch Preview URL: https://fix-npm-audit-high-2026-07-3.specification-website.pages.dev

View logs

@jdevalk
jdevalk merged commit 4884924 into main Jul 31, 2026
8 checks passed
@jdevalk
jdevalk deleted the fix/npm-audit-high-2026-07-31 branch July 31, 2026 10:42
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