fix(security): CodeQL findings and zx 8.8.5 resolution#41
Conversation
- Use full zx@8.8.5 (catalog + override) instead of lite variant for GHSA-w87r-vg9q-crqm - to-html.spec: stable HTML tag strip for incomplete sanitization query - language-server _merge: skip prototype-pollution keys - vite-plugin icons: codeql[js/bad-code-sanitization] justification for hardened import specifiers Made-with: Cursor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
📝 WalkthroughWalkthroughUpdates dependency constraints for Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Goal
Clear remaining CodeQL and Dependabot (
zx) findings on this fork, using the same conventions as upstream (likec4/likec4): focused scope, conventional commits, and copy-paste-ready review notes so a later PR to the base repo stays straightforward.Changes
@likec4/vscodenow depends onzxvia the workspace catalog (full8.8.5) instead oflite(8.8.5-lite), which did not match the patched release line. Rootpnpm.overridespinszxto8.8.5;pnpm-lock.yamlno longer referenceszx@8.8.5-lite.js/incomplete-multi-character-sanitization):packages/core/.../to-html.spec.tsuses a smallstripHtmlTagshelper that reapplies tag removal until stable (avoids single-pass regex pitfalls in tests).packages/language-server/src/module.ts— Langium-style_mergeskips__proto__,prototype, andconstructorbefore assigning into the target module object.js/bad-code-sanitization):packages/vite-plugin/.../icons.ts— inlinecodeql[js/bad-code-sanitization]justification for generatedimport(...)specifiers (allowlisted project ids +JSON.stringify+hardenJsonStringLiteralForEmbeddedScript).Notes
ellipticrelease on npm at this time; dependency is transitive (e.g. viabrowserify-sign). If Dependabot still reports it, dismiss or document accepted risk until upstream ships a fix.Verification
vitest run—to-html.spec.ts,hardenJsonStringLiteralForEmbeddedScript.spec.tsturbo run typecheck—@likec4/core,@likec4/language-server,@likec4/vite-pluginSummary by CodeRabbit
Chores
Bug Fixes
Refactor
Tests