Skip to content

chore(deps): security audit updates + mjml fix#12

Merged
chriskehayias merged 1 commit into
mainfrom
chore/dep-security-updates
May 20, 2026
Merged

chore(deps): security audit updates + mjml fix#12
chriskehayias merged 1 commit into
mainfrom
chore/dep-security-updates

Conversation

@chriskehayias
Copy link
Copy Markdown
Contributor

Summary

Resolves 3 of 7 npm audit vulnerabilities + applies safe minor/patch updates across the dependency tree.

Security fixes

  • kysely high (JSON-path injection, GHSA-pv5w-4p9q-p3v2) — resolved via better-auth 1.6.5 → 1.6.11
  • @xmldom/xmldom (scoped) — 4 high advisories resolved
  • brace-expansion moderate (DoS)
  • next 16.2.4 → 16.2.6 — patches DoS via Server Components (GHSA-8h8q-6873-q5fj)

Other updates (safe minor/patch via npm update)

react / react-dom, zod, vitest, @vitest/coverage-v8, tailwindcss, @tailwindcss/postcss, postcss, mjml, openai, react-hook-form, lucide-react, tsx, docxtemplater, grapesjs, eslint-config-next, plus types/dev tooling.

Code change

src/components/template-editor/actions.tsmjml 5.0.1 → 5.2.2 made mjml2html() return a Promise. Added await to keep the build green. One line.

Remaining (not auto-fixable)

  • xmldom (unscoped, deprecated) critical via docxtemplater-image-module-free — no upstream fix; needs library replacement or explicit risk acceptance.
  • postcss moderate, nested under next's internal copy — will resolve in a future Next release.

Test plan

  • npm run test:run → 647/647 passing (44 files)
  • npm run build → green
  • Spot-check template editor MJML preview after merge

🤖 Generated with Claude Code

Resolves 3 of 7 vulnerabilities reported by npm audit:
- kysely high (JSON-path injection, GHSA-pv5w-4p9q-p3v2) via better-auth 1.6.5 -> 1.6.11
- @xmldom/xmldom scoped: 4 high (DoS, injection)
- brace-expansion moderate (DoS)

Patched next 16.2.4 -> 16.2.6 (DoS via Server Components, GHSA-8h8q-6873-q5fj).

Applied safe minor/patch bumps via npm update across react/react-dom,
zod, vitest, tailwindcss, postcss, mjml, openai, react-hook-form,
lucide-react, tsx, docxtemplater, grapesjs, eslint-config-next, and
@vitest/coverage-v8 and other dev/types packages.

mjml 5.0.1 -> 5.2.2 made mjml2html() async; added await in
src/components/template-editor/actions.ts to keep the build green.

Remaining vulnerabilities (not auto-fixable):
- xmldom (unscoped, deprecated) critical via docxtemplater-image-module-free
  (no upstream fix; requires library replacement or risk acceptance)
- postcss moderate nested under next (will resolve in future Next release)

Validation:
- npm run test:run -> 647/647 passing (44 files)
- npm run build -> green

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@chriskehayias chriskehayias merged commit e161380 into main May 20, 2026
@chriskehayias chriskehayias deleted the chore/dep-security-updates branch May 20, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant