Skip to content

fix: resolve all npm audit vulnerabilities - #27

Merged
oto-macenauer-absa merged 1 commit into
masterfrom
bugfix/npm-audit-vulnerabilities
Jul 29, 2026
Merged

fix: resolve all npm audit vulnerabilities#27
oto-macenauer-absa merged 1 commit into
masterfrom
bugfix/npm-audit-vulnerabilities

Conversation

@oto-macenauer-absa

Copy link
Copy Markdown
Collaborator

Closes #26

What

Clears all 11 npm audit findings (4 high, 5 moderate, 2 low) → 0 vulnerabilities.

How

  1. npm audit fix — bumps astro, postcss, sharp, svgo, fast-uri
    and the yamlyaml-language-servervolar-service-yaml
    @astrojs/language-server chain. Clears 8 of 11. No breaking-change flag
    needed (--force was not used).

  2. Removed overrides.esbuild = 0.27.7 from package.json. vite@8.1.5
    depends on esbuild@^0.28.0, so the override was downgrading esbuild into
    the range affected by GHSA-g7r4-m6w7-qqqr (arbitrary file read via the dev
    server on Windows). Dropping the pin resolves esbuild to 0.28.1 and clears
    the remaining 3 advisories.

All affected packages are dev/build-time only — nothing changes in the shipped
dist/ output.

Verification

  • npm auditfound 0 vulnerabilities
  • npm ls esbuildesbuild@0.28.1 under both vite and astro
  • npm test (Playwright E2E, self-contained) → 32/32 passed

Note for reviewers: the bumped @playwright/test wants browser revision 1228.
On a machine with an older cached revision the suite fails to launch until
npx playwright install chromium is run once. CI installs browsers per run, so
it is unaffected.

`npm audit` reported 11 vulnerabilities (4 high, 5 moderate, 2 low).

Two changes:

1. `npm audit fix` — bumps astro, postcss, sharp, svgo, fast-uri and the
   yaml/yaml-language-server/@astrojs/language-server chain. Clears 8 of 11.

2. Drop the `overrides.esbuild = 0.27.7` pin. vite 8.1.5 depends on
   esbuild ^0.28.0, so the override was downgrading esbuild into the range
   affected by GHSA-g7r4-m6w7-qqqr (arbitrary file read via the dev server
   on Windows). Without the pin, esbuild resolves to 0.28.1 and the last 3
   advisories clear.

`npm audit` now reports 0 vulnerabilities. Playwright E2E suite passes
32/32; the bumped @playwright/test needs `npx playwright install chromium`
(browser revision 1228) on machines with a cached older revision.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015MkyFmv3JPCkTaFhPVUFtg
@oto-macenauer-absa
oto-macenauer-absa merged commit 5085e73 into master Jul 29, 2026
5 checks passed
@oto-macenauer-absa
oto-macenauer-absa deleted the bugfix/npm-audit-vulnerabilities branch July 29, 2026 10:25
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.

npm audit reports 11 vulnerabilities (4 high)

1 participant