Skip to content

fix(deps): remove transitive postcss vulnerabilities#1740

Open
edda wants to merge 1 commit into
mainfrom
edda/remove-postcss-transitive-vulns
Open

fix(deps): remove transitive postcss vulnerabilities#1740
edda wants to merge 1 commit into
mainfrom
edda/remove-postcss-transitive-vulns

Conversation

@edda
Copy link
Copy Markdown
Contributor

@edda edda commented Jun 5, 2026

Summary

Resolves three Dependabot alerts (#89, #215, #216) on postcss by removing unused dev tooling that pulled vulnerable versions into the lockfile. With Tailwind 4 + @tailwindcss/vite we no longer need a direct postcss/autoprefixer setup, and a few other dev deps were leftover from earlier toolchains.

  • node-sass-glob-importer (ui-components) — no .scss files exist anywhere in apps/ or packages/; the Storybook scss preprocessor block was dead config. Removing it kills the postcss@6.0.23 and postcss@8.5.14 chains.
  • autoprefixer (carbon, heureka) — neither app has a postcss config nor references autoprefixer in their vite configs. Tailwind 4 handles vendor prefixing via Lightning CSS.
  • eslint-plugin-tailwindcss (carbon, heureka, template) — limited Tailwind 4 support. Rules were already turned off in heureka, unused in template, and only actively configured in carbon (where we'd rather drop the plugin entirely than ship rules that don't understand v4).

After this change, pnpm why postcss -r shows only postcss@8.5.15 (via vite), which is above all Dependabot patched versions (8.2.13, 8.4.31, 8.5.10).

Net diff: −64 packages, ~600 lines off the lockfile.

Test plan

  • pnpm lint — 19/19 packages
  • pnpm typecheck — 23/23 packages
  • pnpm test — 24/24 packages (1308 ui-components tests)
  • pnpm build-storybook (ui-components) — built clean
  • Local smoke test of apps + Storybook (verified by author)
  • Confirm the three postcss Dependabot alerts auto-close on merge

@edda edda requested review from a team and franzheidl as code owners June 5, 2026 13:24
Copilot AI review requested due to automatic review settings June 5, 2026 13:24
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 5, 2026

⚠️ No Changeset found

Latest commit: c6e2354

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

PR Preview Action v1.8.1

🚀 View preview at
https://cloudoperators.github.io/juno/pr-preview/pr-1740/

Built to branch gh-pages at 2026-06-05 13:52 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes unused dev tooling (and related config) that was pulling vulnerable transitive postcss versions into the workspace, aligning the repo with the Tailwind 4 + @tailwindcss/vite toolchain (Lightning CSS) and eliminating now-dead SCSS and Tailwind ESLint plugin setup.

Changes:

  • Removed autoprefixer from app devDependencies and eliminated eslint-plugin-tailwindcss usage/config where it was still referenced.
  • Removed node-sass-glob-importer and the dead SCSS preprocessor configuration from ui-components Storybook.
  • Regenerated pnpm-lock.yaml to drop the transitive vulnerable postcss chains and related packages.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pnpm-lock.yaml Lockfile cleanup reflecting removal of unused tooling and elimination of vulnerable transitive postcss versions.
packages/ui-components/package.json Drops node-sass-glob-importer from devDependencies.
packages/ui-components/.storybook/main.js Removes SCSS preprocessor configuration and switches to ESM import for vite-plugin-glob.
apps/template/package.json Removes unused eslint-plugin-tailwindcss from devDependencies.
apps/heureka/package.json Removes unused autoprefixer and eslint-plugin-tailwindcss from devDependencies.
apps/heureka/eslint.config.mjs Removes Tailwind plugin rule overrides now that the plugin is no longer used.
apps/carbon/package.json Removes unused autoprefixer and eslint-plugin-tailwindcss from devDependencies.
apps/carbon/eslint.config.mjs Removes Tailwind ESLint plugin import/registration/extends and its rule configuration.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Drop unused dev tooling that pulled in vulnerable postcss versions:
- node-sass-glob-importer (ui-components) — no .scss files exist; the
  Storybook scss preprocessor block was dead config
- autoprefixer (carbon, heureka) — Tailwind 4 + @tailwindcss/vite
  handles vendor prefixing via Lightning CSS
- eslint-plugin-tailwindcss (carbon, heureka, template) — limited
  Tailwind 4 support; rules were already off in heureka and unused
  in template

Removes 64 packages and the postcss@6.0.23, 8.5.10, and 8.5.14 chains.
Only postcss@8.5.15 (via vite) remains, which is above all Dependabot
patched versions.

Signed-off-by: Esther Schmitz <esther.schmitz@sap.com>
@edda edda force-pushed the edda/remove-postcss-transitive-vulns branch from 6fcdb3e to c6e2354 Compare June 5, 2026 13:51
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.

2 participants