Skip to content

Studio frontend: bump zod to 4.6.7 - #15636

Closed
dependabot[bot] wants to merge 4 commits into
mainfrom
dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-47cd159d9b
Closed

dependabot[bot] wants to merge 4 commits into
mainfrom
dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-47cd159d9b

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Bumps zod 4.4.3 -> 4.6.7 in studio/frontend/package-lock.json (transitive, via @assistant-ui/react and eslint-plugin-react-hooks). Closes GHSA-mrhx (high).

The rest of the original Dependabot group is no longer needed on main:

  • shadcn: Studio: vendor shadcn's tailwind.css instead of installing the shadcn CLI #15635 removed the shadcn CLI and vendored its tailwind.css, which also removed the CLI's dependency tree (body-parser, hono, qs, fast-uri, ...) and their advisories.
  • katex: stays on 0.16.47. katex 0.18 renamed 20 CSS classes (.base, .strut, .sizing, .tag, ...) that the 0.16 renderers used by rehype-katex, @streamdown/math, mermaid and micromark-extension-math still emit, so math would lose its styles. 0.18 also does not close the katex advisory.

zod 4.6.7 was published 2026-10-12, so it passes .npmrc's min-release-age=7; the lockfile integrity matches the registry.

Checks (current main vs this branch)

  • npm ci, npm run build: pass on both.
  • Built dist/: same file set, every file byte-identical.
  • npm test: 14288 passed, 0 failed, 1 skipped on both.
  • npm audit: 10 (2 high, 8 low) -> 9 (1 high, 8 low). The remaining high is node-forge GHSA-86w9 (its fix, 1.4.2, is a day old); the lows are the katex chain with no 0.16.x fix.

Bumps the npm-frontend-security group with 3 updates in the /studio/frontend directory: [katex](https://github.com/KaTeX/KaTeX), [body-parser](https://github.com/expressjs/body-parser) and [zod](https://github.com/colinhacks/zod).


Updates `katex` from 0.16.47 to 0.18.2
- [Release notes](https://github.com/KaTeX/KaTeX/releases)
- [Changelog](https://github.com/KaTeX/KaTeX/blob/main/CHANGELOG.md)
- [Commits](KaTeX/KaTeX@v0.16.47...v0.18.2)

Updates `body-parser` from 2.3.0 to 2.4.0
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](expressjs/body-parser@v2.3.0...v2.4.0)

Updates `zod` from 4.4.3 to 4.6.7
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](colinhacks/zod@v4.4.3...v4.6.7)

---
updated-dependencies:
- dependency-name: katex
  dependency-version: 0.18.2
  dependency-type: direct:production
  dependency-group: npm-frontend-security
- dependency-name: body-parser
  dependency-version: 2.4.0
  dependency-type: indirect
  dependency-group: npm-frontend-security
- dependency-name: zod
  dependency-version: 4.6.7
  dependency-type: indirect
  dependency-group: npm-frontend-security
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot requested a review from danielhanchen as a code owner October 28, 2026 01:59
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 28, 2026
@danielhanchen

Copy link
Copy Markdown
Member

Frontend build + bundle sanity fails on case C3 of tests/studio/test_frontend_dep_removal.py:

[FAIL] C3: removing katex is safe: streamdown/math, mermaid, rehype-katex all keep it at top level
  expected: status=PASS fails=[]
  actual:   status=FAIL fails=['katex']

C3 reads the real package-lock.json and relies on the direct katex dependency being the same copy that streamdown/math, mermaid and rehype-katex resolve. This bump moves the direct pin from ^0.16.28 to ^0.18.2, so those ^0.16 consumers no longer share the top-level copy and the checker correctly reports that removing katex would not be safe. Either keep katex on 0.16 in this group (the other two bumps are independent), or confirm the consumers render with 0.18 and update C3's expectation to match the new tree.

@danielhanchen

Copy link
Copy Markdown
Member

Frontend unit tests (Windows) is red here too, and only here: it passes on #15619, #15629, #15630 and #15631 from the same main. Every subtest in the UI scale / native zoom file fails with Promise resolution is still pending but the event loop has already resolved (starting at not ok 6278 - a late wedged call restores the requested native zoom), which means that test file's process ended early. So one of the three bumped packages changes behaviour on Windows for that file; it is worth reproducing with each bump on its own before merging.

@danielhanchen danielhanchen self-assigned this Oct 28, 2026
katex 0.18 renames its CSS classes (.base, .strut, .vlist parts become
.katex-*), while the renderer (@streamdown/math -> rehype-katex) still
emits katex 0.16 markup. Loading the 0.18 katex.min.css would leave math
unstyled, so katex stays on 0.16.47.

shadcn 4.23 drops the @modelcontextprotocol/sdk 1.x chain (express,
body-parser, hono, fast-uri, qs, ajv) and its nested zod 3, but its
dist/tailwind.css now adds a shimmer utility that merges into
tw-shimmer's .shimmer. Studio imports only the 4.7.0 variants, keyframes
and no-scrollbar from that file, so vendor them locally; the built dist
is byte-identical to main.

[skip ci]
@danielhanchen danielhanchen changed the title Bump the npm-frontend-security group across 1 directory with 3 updates Studio frontend: bump shadcn to 4.23.0 and zod to 4.6.7, keep katex on 0.16 Oct 28, 2026
@danielhanchen danielhanchen changed the title Studio frontend: bump shadcn to 4.23.0 and zod to 4.6.7, keep katex on 0.16 Studio frontend: bump zod to 4.6.7 Oct 28, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Looks like these dependencies are updatable in another way, so this is no longer needed.

@dependabot dependabot Bot closed this Oct 28, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-47cd159d9b branch October 28, 2026 11:27
danielhanchen added a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 28, 2026
)

Bumps `zod` 4.4.3 -> 4.6.7 in `studio/frontend/package-lock.json`
(transitive, via `@assistant-ui/react` and `eslint-plugin-react-hooks`).
Closes GHSA-mrhx (high).

Narrowed from the Dependabot group (the same pair was proposed in
unslothai#15636, which Dependabot closed after main dropped the shadcn CLI):

- **shadcn**: unslothai#15635 removed the shadcn CLI and vendored its
`tailwind.css`, which also removed the CLI's dependency tree
(body-parser, hono, qs, fast-uri, ...) and their advisories.
- **katex**: stays on 0.16.47. katex 0.18 renamed 20 CSS classes
(`.base`, `.strut`, `.sizing`, `.tag`, ...) that the 0.16 renderers used
by rehype-katex, @streamdown/math, mermaid and micromark-extension-math
still emit, so math would lose its styles. 0.18 also does not close the
katex advisory.

zod 4.6.7 was published 2026-10-12, so it passes `.npmrc`'s
`min-release-age=7`; the lockfile integrity matches the registry.

## Checks (current main vs this branch)

- `npm ci`, `npm run build`: pass on both.
- Built `dist/`: same file set, every file byte-identical.
- `npm test`: 14332 passed on both; the same single test (`text and
lines head away from whatever they are drawn on`) fails on main and
here.
- `npm audit`: 10 (2 high, 8 low) -> 9 (1 high, 8 low). The remaining
high is node-forge GHSA-86w9 (its fix, 1.4.2, is a day old); the lows
are the katex chain with no 0.16.x fix.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Han <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant