Repository navigation
fix(ui-customization): upgrade Baseline UI to remove vulnerable Zod - #209
MahmoudElsayad wants to merge 1 commit into
Conversation
| "@baseline-ui/core": "^0.45.8", | ||
| "@baseline-ui/icons": "^0.45.8", | ||
| "@baseline-ui/tokens": "^0.45.8", | ||
| "@baseline-ui/core": "3.9.0", |
There was a problem hiding this comment.
This upgrade breaks how the comment thread looks. I rendered it on master and on this branch. On this branch the card is dark, the counter text is blue, the editor shrinks to a small box with a resize handle, and the send button turns into a peach dashed square.
The cause is that the thread renders inside the viewer's shadow root, and this example's own Baseline UI CSS stays in the main page, so it never reaches the thread. The thread gets its styles from the copy of Baseline UI bundled inside @nutrient-sdk/viewer 1.15.1 (0.58.0). That only worked because 0.45.8 happened to generate the same class names as 0.58.0. 3.9.0 generates different ones, and the SDK's stylesheet gives some of them other meanings. For example, _1yep5z6g9 is background-inverse-strong there, which is why the card goes dark.
The Playwright check covered create, edit and delete, but not appearance, so it passed anyway. One way to fix it: move @nutrient-sdk/viewer to a release whose bundled Baseline UI matches the version pinned here, then compare a screenshot of the open thread with master.
What
Upgrade the UI customization example from Baseline UI 0.45.8 to 3.9.0. Both lockfiles now resolve Zod 4.6.7, which fixes the remaining npm alert and pnpm alert from #208.
Baseline UI 3.9.0 passed the seven-day cooldown. The example compiles without source changes, and no Zod major override is needed. The SDK version and cooldown policy stay unchanged.
Validation
On November 6, 2026, both audits report zero high or critical findings. npm still reports four low and seven moderate findings; pnpm reports one low and one moderate finding. These are outside the Zod remediation. The builds still report dependency annotation and bundle-size warnings. An oversized malicious Zod payload was not tested.
Type
Checklist
npm run formatpasses. Targeted formatting passes; the repository-wide rewrite was not run.