fix(security): bump postcss to 8.5.23 to resolve HIGH audit finding - #91
Merged
Conversation
The main pipeline's Security job (``npm audit --audit-level=high --omit=dev``) fails on GHSA-r28c-9q8g-f849 — a HIGH path-traversal in PostCSS's source-map auto-loading (affects postcss <= 8.5.17). postcss is a transitive dependency (vite, tailwindcss, autoprefixer, vue's compiler-sfc all pull it in). Run ``npm audit fix`` to bump the deduped postcss to 8.5.23. No package.json range changes — lockfile only, patch-level within 8.5.x, no breaking change. ``npm audit --audit-level=high --omit=dev`` now reports 0 vulnerabilities; type-check and the unit suite (101 passed) stay green. The advisory was published between the feature PR's green run and the merge run, which is why main went red without any source change.
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.
Warum main rot ist
Der Security-Job der main-Pipeline (
npm audit --audit-level=high --omit=dev) schlägt auf GHSA-r28c-9q8g-f849 an — eine HIGH Path-Traversal-Lücke im Source-Map-Auto-Loading von PostCSS (postcss <= 8.5.17). PostCSS ist eine transitive Dependency (viavite,tailwindcss,autoprefixer,@vue/compiler-sfc).Nicht durch ein Feature verursacht: Type Check, Test und Coverage waren im Merge-Run von #90 alle grün — nur
npm auditwar rot. Die Advisory wurde offenbar zwischen dem grünen PR-Run und dem Merge-Run veröffentlicht, weilnpm auditgegen die Live-Advisory-DB prüft. Deshalb war der PR grün und main danach rot, ohne dass sich Quellcode geändert hat.Fix
npm audit fixbumpt das dedupedpostcssauf 8.5.23.package-lock.jsongeändert — keine Range-Änderung inpackage.json.8.5.x, kein Breaking Change.postcssist build-time (Tailwind/Vite), kein Runtime-Code-Pfad betroffen.Verifikation (lokal)
npm audit --audit-level=high --omit=dev→ found 0 vulnerabilitiesvue-tsc --noEmit→ cleanvitest --run→ 101 passed, 26 skipped