Skip to content

fix: bump postcss to patch Dependabot alert - #40

Merged
riglar merged 1 commit into
mainfrom
fix/dependabot-postcss
Aug 3, 2026
Merged

fix: bump postcss to patch Dependabot alert#40
riglar merged 1 commit into
mainfrom
fix/dependabot-postcss

Conversation

@riglar

@riglar riglar commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Closes Dependabot alert #28PostCSS: Path Traversal in Previous Source Map Auto-Loading (sourceMappingURL) leads to Arbitrary .map File Disclosure.

Change

Added a postcss: ">=8.5.18" pnpm override alongside the existing undici one. postcss resolves 8.5.15 → 8.5.25.

An override is required because postcss is transitive — vitest 4.1.8 → vite → postcss — so bumping a direct dependency would not move it.

Impact assessment

Low. postcss is a dev-only dependency here:

  • It enters via vitest; dist is built by ncc from src, so the vulnerable code never ships in the action bundle.
  • The traversal requires parsing attacker-controlled CSS, which this project does not do.

The bump closes the alert rather than fixing a live exposure.

Verification

pnpm test — 12/12 passing.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

postcss <= 8.5.17 is vulnerable to path traversal via sourceMappingURL
auto-loading (Dependabot alert #28). It reaches this repo transitively
through vitest -> vite, so a pnpm override is needed to move it.

Resolves postcss 8.5.15 -> 8.5.25. Dev-only dependency; the vulnerable
code is not present in the ncc-built dist bundle.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@riglar
riglar merged commit 8244f0b into main Aug 3, 2026
3 checks passed
@riglar
riglar deleted the fix/dependabot-postcss branch August 3, 2026 10:55
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