Skip to content

fix(deps): clear the two advisories blocking the release - #31

Merged
mindaugaskasp merged 1 commit into
mainfrom
fix/audit-advisories
Aug 6, 2026
Merged

fix(deps): clear the two advisories blocking the release#31
mindaugaskasp merged 1 commit into
mainfrom
fix/audit-advisories

Conversation

@mindaugaskasp

Copy link
Copy Markdown
Owner

npm audit at the release gate (release.yml) has failed since the v0.4.14 tag, which is why v0.4.14 never shipped and package.json on main is still at 0.4.13. No tag can ship until both are cleared.

package severity ships? fix
mermaid ^11.16.0 moderate ×5 yes ^11.16.1
js-yaml 4.3.0 high no — dev only 4.3.1

mermaid — the one that matters

Five advisories cover 11.0.0-alpha.1 … 11.16.0: prototype pollution in the configuration APIs and in Architecture diagrams, CSS injection applying to siblings of the diagram, and DoS in XY charts and radar diagrams. This is a production dependency and the app renders diagram source it did not write, so this is a real exposure rather than a build-machine one. 11.16.1 is the fix — a patch bump, no API change.

js-yaml — dev only

Quadratic CPU in !!omap resolution (CVE-2026-59870). It reaches the tree only through electron-builder and @intlify/eslint-plugin-vue-i18n; nothing we import reaches it and it never ships. 4.3.1 is the backported fix in the 4.x line, so no major is forced into someone else's tool — which docs/standards.md rules out anyway.

How

Both are semver-compatible, so make audit-fix (container npm, never --force) resolved them and the lock stays Linux-complete. --force was not used: on this tree it reaches electron and electron-builder.

Verification

  • npm audit0 vulnerabilities (was 1 high, 1 moderate)
  • npm run check — green. 2632 passed | 2 skipped; coverage 95.09 st / 88.03 br / 95.68 fn / 96.09 li
  • make rebuild + make e2e — the full suite against the bumped mermaid, since it is what renders every diagram

🤖 Generated with Claude Code

`npm audit` at the release gate has failed since the v0.4.14 tag, so no
tag can ship until both are cleared:

- mermaid — five advisories covering 11.0.0-alpha.1 through 11.16.0
  (prototype pollution in the config APIs and in Architecture diagrams,
  CSS injection into siblings of the diagram, DoS in XY charts and radar
  diagrams). This one SHIPS in the app, and the app renders untrusted
  diagram source, so it is the one that matters. 11.16.1 is the fix — a
  patch bump, no API change.
- js-yaml 4.3.0 — quadratic CPU in !!omap resolution (CVE-2026-59870).
  Dev-only: it reaches the tree through electron-builder and
  @intlify/eslint-plugin-vue-i18n and never ships. 4.3.1 is the fix in
  the 4.x line, so nothing has to force a major into someone else's tool
  — which docs/standards.md rules out anyway.

Both are semver-compatible, so `make audit-fix` (container npm, not
--force) resolved them and the lock stays Linux-complete.

`npm audit` now reports 0 vulnerabilities.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mindaugaskasp
mindaugaskasp merged commit e82cbab into main Aug 6, 2026
6 checks passed
@mindaugaskasp
mindaugaskasp deleted the fix/audit-advisories branch August 6, 2026 23:43
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