fix: add pnpm overrides for vulnerable deps, move serve to devDeps, add audit CI (closes #83) - #85
Open
LucasMaupin wants to merge 1 commit into
Open
fix: add pnpm overrides for vulnerable deps, move serve to devDeps, add audit CI (closes #83)#85LucasMaupin wants to merge 1 commit into
LucasMaupin wants to merge 1 commit into
Conversation
…dd audit CI (closes #83) - Add pnpm.overrides pinning vite>=6.4.3 (resolved 8.1.5), postcss>=8.5.10, fast-uri>=3.1.2, brace-expansion>=5.0.6, js-yaml>=4.2.0, @babel/core>=7.29.6 - Move `serve` from dependencies to devDependencies (it is not used in Docker/production) - Rename `start` script to `start:local` to make its dev-only nature explicit; production deployments use the Docker image with nginx - Add .github/workflows/audit.yml running `pnpm audit --audit-level=high` on every PR that touches package.json or pnpm-lock.yaml, and weekly on main Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm.overridesto pin vulnerable transitive dependencies to safe versions:vite→>=6.4.3(resolved to8.1.5— fixes fs.deny bypass and NTLMv2 hash disclosure)postcss→>=8.5.10(fixes CVE-2026-41305 XSS via unescaped</style>)fast-uri→>=3.1.2(fixes host confusion + path traversal)brace-expansion→>=5.0.6(fixes ReDoS)js-yaml→>=4.2.0(fixes quadratic-complexity DoS)@babel/core→>=7.29.6(fixes arbitrary file read viasourceMappingURL)servefromdependencies→devDependencies(it is not used in Docker/production nginx deployments)startscript tostart:localto make clear it is for local/dev use only; production deployments use the Docker image with nginx.github/workflows/audit.ymlrunningpnpm audit --audit-level=highon every PR touchingpackage.json/pnpm-lock.yaml, and on a weekly scheduleTest plan
pnpm installand verify locked versions satisfy all overridespnpm auditand confirm high-severity advisories are resolvedpnpm buildsucceedsserveis no longer in the production dependency set (pnpm list --prod | grep servereturns empty)package.jsonCloses #83
🤖 Generated with Claude Code