Skip to content

fix(security): remediate PostCSS source map disclosure advisories (High) - #701

Open
fro-bot wants to merge 2 commits into
mainfrom
fro-bot/security-postcss-source-map-disclosure
Open

fro-bot wants to merge 2 commits into
mainfrom
fro-bot/security-postcss-source-map-disclosure

Conversation

@fro-bot

@fro-bot fro-bot commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Two High-severity Dependabot advisories flagged postcss@8.5.10 (transitive dependency via vite, devDependency only):

  • GHSA-r28c-9q8g-f849 — Path Traversal in Previous Source Map Auto-Loading (sourceMappingURL), leading to arbitrary .map file disclosure. Fixed in 8.5.18.
  • GHSA-6g55-p6wh-862q — Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments. Fixed in 8.5.12.

Fix

Added a pnpm-workspace.yaml override pinning postcss to ^8.5.18 (first version covering both advisories), following the same pattern used for the existing fast-uri override. Resolved version after pnpm install is 8.5.22.

Verification

  • pnpm build — passes (tsc + vite build)
  • pnpm test — 57 files / 1298 tests passing, no regressions
  • pnpm why postcss confirms single resolved version 8.5.22, no duplicate/conflicting resolutions

Scope

Dependency-version-only change scoped to security remediation, per autohealing category 2 (Security). No other dependencies touched.


🤖 Generated by Fro Bot autohealing (schedule-95a0d398-30146724049)

Adds a pnpm override pinning postcss to ^8.5.18, the first version
patched against both GHSA-r28c-9q8g-f849 (path traversal via previous
sourceMappingURL auto-loading, fixed in 8.5.18) and GHSA-6g55-p6wh-862q
(arbitrary file read via attacker-controlled sourceMappingURL in CSS
comments, fixed in 8.5.12). postcss is a transitive dependency of vite
(devDependency); resolved version is now 8.5.22.

Verified: pnpm build and pnpm test pass with no regressions.
Dependabot alert #51 flagged that this PR's postcss override (^8.5.18,
resolving to 8.5.22) is still within the vulnerable range for an
incomplete-fix follow-up to the sourceMappingURL disclosure advisory
(Medium). Upstream fully patched it in 8.5.23; bump the pnpm override
to close the remaining exposure.
@fro-bot

fro-bot commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

Fro Bot autoheal: Dependabot alert #51 flagged that this PR's postcss override (^8.5.18, resolving to 8.5.22) still fell within the vulnerable range for an incomplete-fix follow-up to the sourceMappingURL disclosure advisory (Medium). Upstream fully patched it in 8.5.23. Bumped the pnpm-workspace.yaml override to ^8.5.23 (resolves to 8.5.25) and regenerated pnpm-lock.yaml. pnpm build verified clean on the updated branch.

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