Skip to content

Studio frontend: bump node-forge to 1.4.3 and seroval to 1.7.5 - #16258

Merged
danielhanchen merged 4 commits into
mainfrom
dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-65f6b72ff0
Nov 12, 2026
Merged

danielhanchen merged 4 commits into
mainfrom
dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-65f6b72ff0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Narrowed from the original Dependabot group bump.

Changes

Not taken

  • katex stays on 0.16. 0.17 / 0.18 rename CSS classes and change rendering, which would change how math looks in chat. The remaining katex advisory (GHSA-238p-pmpm-9mq7) needs prototype pollution to already exist, and our katex settings come only from our own code.

Checks

  • npm ci clean, npm audit --omit=dev: main 17 (1 high, 8 moderate, 8 low) -> 8 low, all on the katex chain.
  • npm test: 15606 passed, 0 failed.
  • npm run build: OK.
  • Provider API key envelope interop: the exact encryptProviderApiKey steps (RSA-OAEP SHA-256 + AES-GCM, tag 128) run with node-forge 1.4.0 and 1.4.3, then decrypted by the real backend key_exchange.decrypt_api_key. Both versions round-trip an ASCII key and a 314 character Unicode key, and the forge.md.sha256 attachment-id fallback matches hashlib.sha256 on both.
  • No visible UI change: node-forge only backs API key encryption and the attachment-id hash fallback; seroval is TanStack Router's serializer.

Bumps the npm-frontend-security group with 3 updates in the /studio/frontend directory: [katex](https://github.com/KaTeX/KaTeX), [node-forge](https://github.com/digitalbazaar/forge) and [seroval](https://github.com/lxsmnsyc/seroval).


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 `node-forge` from 1.4.0 to 1.4.1
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](digitalbazaar/forge@v1.4.0...v1.4.1)

Updates `seroval` from 1.6.8 to 1.7.5
- [Release notes](https://github.com/lxsmnsyc/seroval/releases)
- [Commits](https://github.com/lxsmnsyc/seroval/compare/[email protected]@1.7.5)

---
updated-dependencies:
- dependency-name: katex
  dependency-version: 0.18.2
  dependency-type: direct:production
  dependency-group: npm-frontend-security
- dependency-name: node-forge
  dependency-version: 1.4.1
  dependency-type: direct:production
  dependency-group: npm-frontend-security
- dependency-name: seroval
  dependency-version: 1.7.5
  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 31, 2026 04:24
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 31, 2026
@danielhanchen

danielhanchen commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

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

[FAIL] C3: removing katex is safe: streamdown/math, mermaid, rehype-katex all keep it at top level
    actual:   status=FAIL fails=['katex']
      reachable (nested, NOT importable from src/): node_modules/@streamdown/math/node_modules/katex (+3 more)

This comes from the katex bump itself, not from the test. katex moves from ^0.16.28 to ^0.18.2, and 0.16 to 0.18 is a breaking range under 0.x semver. @streamdown/math, mermaid and rehype-katex still ask for ^0.16, so npm now hoists 0.18 for our direct import and nests a separate 0.16 under each of them. The bundle would then carry two KaTeX versions, with the CSS from one and the renderer from the other depending on the path, which is what C3 is there to catch.

I'd split katex out of this group and take only the node-forge and seroval updates here. Then move katex once rehype-katex and @streamdown/math accept 0.18. The 0.18.2 fix (prototype pollution in settings, KaTeX#4260) should still be checked separately. We only reach KaTeX through @streamdown/math and the rehype plugin with a fixed options object, but whether TeX input such as \gdef macros can reach that path needs a look before we decide it can wait.

danielhanchen added a commit that referenced this pull request Oct 31, 2026
#16264)

`pip scan-packages :: hf-stack` now fails on PRs whose closure resolves
unsloth-zoo 2026.10.11, for example #16258:

```
Summary: 5 CRITICAL, 7 HIGH, 172 MEDIUM
  12 of the 184 finding(s) above are at a site already reviewed in scripts/scan_packages_baseline.json. What differs from the reviewed entry:
    HIGH      unsloth-zoo  unsloth_zoo/compiler.py              same matched code, file digest outside the pin
    CRITICAL  unsloth-zoo  unsloth_zoo/device_type.py           same matched code, file digest outside the pin
    ...
```

All twelve are the same kind: the scanner's matched code is
byte-identical to a reviewed entry (the same `evidence_hash`), and only
the pinned `file_sha256` moved because other lines in the file changed
in the release.

| File | Check | Reviewed `evidence_hash` matches |
|---|---|---|
| `unsloth_zoo/device_type.py` | env + network | yes |
| `unsloth_zoo/llama_cpp.py` | env + network | yes |
| `unsloth_zoo/triton_kernels_compat.py` | downloads and executes remote
code | yes |
| `unsloth_zoo/vision_utils.py` | env + network | yes |
| `unsloth_zoo/vision_utils.py` | cloud metadata + network | yes |
| `unsloth_zoo/compiler.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/vllm_gdn_replayssm.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/vllm_utils.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/mlx/decision.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/mlx/loader.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/mlx/speculative.py` | obfuscation + exec/eval | yes |
| `unsloth_zoo/temporary_patches/moe_utils.py` | obfuscation + exec/eval
| yes |

## Change

As in #16114, each new entry sits next to the reviewed one it matches,
pinned at the 2026.10.11 file digest. Nothing is removed, so shards that
still resolve older zoo releases are unaffected. I did not regenerate
the whole file with `--write-baseline`, since a single-package scan
would drop every other package's entries. The diff is 108 added lines
and no removed ones.

## Verification

- `scripts/scan_packages.py unsloth-zoo==2026.10.11` on main gives `5
CRITICAL, 7 HIGH` with exit 1, matching the CI hf-stack run. On this
branch it exits 0 (`24 finding(s) suppressed by baseline`, 13 MEDIUM
left).
- The tests that read the scanner or its baseline, under
`tests/security` and the others that import it: 638 passed.
@danielhanchen danielhanchen self-assigned this Nov 10, 2026
@danielhanchen danielhanchen changed the title Bump the npm-frontend-security group across 1 directory with 3 updates Studio frontend: bump node-forge to 1.4.3 and seroval to 1.7.5 Nov 12, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T14:05:24.295427Z 2aacc52 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 2aacc52a67

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit dad5c73 into main Nov 12, 2026
@danielhanchen
danielhanchen deleted the dependabot/npm_and_yarn/studio/frontend/npm-frontend-security-65f6b72ff0 branch November 12, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects UI# dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code refactor# regresses#

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant