Skip to content

chore(deps): transitively update postcss - #31436

Merged
OS-jacobbell merged 8 commits into
mainfrom
FW-7722
Sep 17, 2026
Merged

OS-jacobbell merged 8 commits into
mainfrom
FW-7722

Conversation

@OS-jacobbell

@OS-jacobbell OS-jacobbell commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Issue number: internal


What is the current behavior?

Several dependencies throughout the repo have postcss as a dependency. While it doesn't affect users, a vulnerability in postcss causes dependabot to log high severity alerts.

What is the new behavior?

  • Bumped dependencies in vue and vue-router that were on the old postcss.
  • Added overrides for ng18, ng19, and ng20 test apps, which are stuck on older versions.
  • Ran npm update for all other packages that inherited postcss. This has a few side effects:
    • Bumps the lockFileVersion from 2 to 3, which accounts for most of the diff in the package-lock files.
    • Bumps the react-router from 5 to 6 in the React 18 test app package-lock.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Core uses old versions of stylelint and stylelint-order that cannot be easily updated, and these use an old postcss with the vulnerability.


Co-authored-by: @anupamme

@OS-jacobbell
OS-jacobbell requested a review from a team as a code owner September 8, 2026 19:11
@OS-jacobbell
OS-jacobbell requested a review from thetaPC September 8, 2026 19:11
@vercel

vercel Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Sep 17, 2026 5:11pm UTC

Request Review

@github-actions github-actions Bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package package: react @ionic/react package labels Sep 8, 2026

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

packages/angular-server looks missed. It's still on postcss 8.5.15, under the 8.5.23 bar that GHSA-fxqj-rqcc-2cmp sets, so its alerts stay open. Should be a plain npm update postcss case.

"webpack": "^5.61.0",
"webpack-cli": "^4.9.2"
},
"overrides": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good call on the override. I'd scoped ng18/ng19/ng20 as unfixable, since @angular-devkit/build-angular pins postcss exactly and the newest devkit in each major is still vulnerable (18 gives 8.4.41, 19 gives 8.5.12). Forcing ^8.5.23 clears all three, which takes three dismissals off FW-7722.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Worth a line in the PR description: the v2 to v3 lockfile migration is most of this file's diff.

Also might be worth mentioning in the description, react-router goes 5.3.4 to 6.30.6. That's a stale lockfile catching up rather than a new bump, since package.json already declared ^6.0.0. Reads alarming in a postcss PR otherwise.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same v2 to v3 migration here, which accounts for the diff size.

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's get the conflict sorted out

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Worth a line in the PR description: the v2 to v3 lockfile migration is most of this file's diff.

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, please provide co-author to anupamme

@OS-jacobbell
OS-jacobbell added this pull request to the merge queue Sep 17, 2026
Merged via the queue into main with commit 6244cec Sep 17, 2026
57 checks passed
@OS-jacobbell
OS-jacobbell deleted the FW-7722 branch September 17, 2026 17:33
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-ionic-team__ionic-framework that referenced this pull request Oct 31, 2026
…#31616)

Issue number: resolves internal

---------

## What is the current behavior?

Dependabot and `npm audit` report high and critical alerts against the
lock files in `core` and `packages/*`. None of them reach users: lock
files are not published, and our declared ranges already resolve to the
patched versions on a fresh install. The alerts are noise that can bury
a real one.

## What is the new behavior?

- Updated the vulnerable packages, and the parents that pin them, within
the existing ranges.
- Added an override in `core` for `compression` under `serve`, since the
latest `serve` pins the vulnerable version. Remove it once a `serve`
release includes vercel/serve#868.
- `migrate` moves to `vite` 7.3.7 rather than the latest 8.x, which
would swap its test bundler for Rolldown.
- Angular dev dependencies move from 22.0 to 22.2. Angular 22.2 dropped
the private `contexts` field from the `ChildrenOutletContexts` typings,
so `ion-router-outlet` now casts to a local type when it saves and
restores tab state. The field still exists at runtime, so behavior is
unchanged.
- `@angular/cli` 22.2 no longer bundles its MCP server, which accounts
for most of the removals in the Angular lock file.

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

## Other information

Test app and root lock files are updated in ionic-team#31617. The `postcss` 7
alerts in `core` remain: they come from `stylelint` 13 and need a
`stylelint` upgrade, as noted in ionic-team#31436.

---------

Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — 9cf4c6ac Deployed Sep 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: react @ionic/react package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants