chore(deps): bump postcss to >=8.5.10 (GHSA-qx2v-qp2m-jg93)#1276
Merged
John-David Dalton (jdalton) merged 1 commit intomainfrom Apr 25, 2026
Merged
chore(deps): bump postcss to >=8.5.10 (GHSA-qx2v-qp2m-jg93)#1276John-David Dalton (jdalton) merged 1 commit intomainfrom
John-David Dalton (jdalton) merged 1 commit intomainfrom
Conversation
Transitive dev-scope dependency pulled in via vite@7.3.2. The pre-8.5.10 line does not escape `</style>` in stringify output; a malicious PostCSS plugin could inject XSS when output is embedded in HTML <style> tags. Upstream advisory: GHSA-qx2v-qp2m-jg93 - CVE-2026-41305 / CVSS v3.1 6.1 (medium). - First patched: 8.5.10. - socket-cli does not use PostCSS at runtime, but Dependabot flags the lockfile presence so we pin the floor anyway — same discipline as the existing defu / glob / qs overrides. Fix: add `postcss: '>=8.5.10'` to the pnpm-workspace overrides block. Regenerated pnpm-lock.yaml reflects postcss@8.5.10. Fixes https://github.com/SocketDev/socket-cli/security/dependabot/134
Dale Bustad (divmain)
approved these changes
Apr 25, 2026
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
Fixes https://github.com/SocketDev/socket-cli/security/dependabot/134.
postcss < 8.5.10 does not escape
</style>sequences when stringifying CSS ASTs. When user-submitted CSS is re-stringified for embedding in HTML<style>tags,</style>in CSS values breaks out of the style context and allows XSS via a following<script>. See GHSA-qx2v-qp2m-jg93 / CVE-2026-41305. CVSS v3.1 6.1 (medium).What's changed
pnpm-workspace.yaml: addpostcss: '>=8.5.10'to the overrides block.pnpm-lock.yaml: regenerated — postcss bumped8.5.9 → 8.5.10(both importers: the direct resolution and the vite transitive).Why an override vs. dep bump
postcss is a transitive dev-scope dep (via vite@7.3.2). The overrides block is the right tool here — matches the existing shape (
defu: '>=6.1.7',glob: '>=13.0.6',qs: '>=6.15.1'are the same pattern for the same reason). Overriding sets a floor without pinning exact, so future patch bumps land organically.Test plan
pnpm installin a clean clone succeeds.Note
Low Risk
Low risk: dependency override plus lockfile regen to pick up a patch release; main risk is minor build/CSS tooling behavior differences from the PostCSS patch update.
Overview
Security-driven dependency update: adds a pnpm
overridesfloor ofpostcss: '>=8.5.10'inpnpm-workspace.yaml.Regenerates
pnpm-lock.yamlsopostcssresolves to8.5.10(including thevitetransitive), addressing the advisory affecting older PostCSS versions.Reviewed by Cursor Bugbot for commit de68c95. Configure here.