Skip to content

chore(deps): reduce npm audit vulnerabilities 97→84 (DEVSITE-2481) - #98

Merged
louisachu merged 3 commits into
mainfrom
devsite-2481-new
Aug 27, 2026
Merged

louisachu merged 3 commits into
mainfrom
devsite-2481-new

Conversation

@louisachu

Copy link
Copy Markdown
Collaborator

Summary

Bumps low-risk dependency versions to reduce npm install audit vulnerabilities from 97 → 84, without touching @adobe/aio-cli (which is required by the release pipeline and is the source of the remaining, upstream-blocked advisories).

Part of DEVSITE-2481, which flagged 102 security vulnerabilities + deprecated package warnings during the private deploy's npm install.

Changes

Runtime deps (patch-level, same minor line — shipped in dist bundle):

Package From → To
@adobe/helix-markdown-support 7.1.0 → 7.1.23
@adobe/mdast-util-gridtables 4.0.1 → 4.0.5
@adobe/remark-gridtables 3.0.1 → 3.0.20

Dev-only tooling (not shipped):

Package From → To
@babel/core 7.24.0 → 7.29.7
rollup 4.12.1 → 4.63.0
mocha 10.3.0 → 10.8.2
lint-staged 15.2.2 → 15.5.2
@typescript-eslint/eslint-plugin + parser 7.1.1 → 7.18.0

Verification

  • npm run build — passes
  • npm test (Node 24 / lts-krypton) — result unchanged from baseline (8 pre-existing failures present on main too, unrelated to these bumps)
  • @adobe/aio-clinot modified (no downgrade)

Known floor / follow-up

The remaining 84 vulnerabilities are almost entirely bundled inside @adobe/aio-cli@11.1.0 (sigstore/pacote/libnpm/tar/undici). npm audit fix reports these as unfixable and --force only offers a breaking downgrade to aio-cli 7.0.0. Clearing them requires an upstream Adobe aio-cli update, or restructuring how aio-cli is installed — tracked separately.

🤖 Generated with Claude Code

…ITE-2481)

Bump patch/minor dependency versions to cut npm audit vulnerabilities
from 97 to 84 without touching @adobe/aio-cli (the source of the
remaining, upstream-blocked advisories).

Runtime (patch-level, same minor line):
- @adobe/helix-markdown-support 7.1.0 -> 7.1.23
- @adobe/mdast-util-gridtables  4.0.1 -> 4.0.5
- @adobe/remark-gridtables      3.0.1 -> 3.0.20

Dev-only tooling (not shipped in dist bundle):
- @babel/core                   7.24.0 -> 7.29.7
- rollup                        4.12.1 -> 4.63.0
- mocha                         10.3.0 -> 10.8.2
- lint-staged                   15.2.2 -> 15.5.2
- @typescript-eslint/*          7.1.1  -> 7.18.0

Build passes; test suite result unchanged from baseline (pre-existing
failures unrelated to these bumps).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@melissag-ensemble melissag-ensemble left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor / non-blocking: a couple of these bumps leave sibling packages mismatched, so npm can't dedupe and both copies get bundled (no external list in rollup.config.ts):

  • hast-util-to-html stays pinned at 9.0.0, but @adobe/helix-markdown-support@7.1.23 now requires a nested 9.0.5.
  • @adobe/mdast-util-gridtables stays at 4.0.5, but @adobe/remark-gridtables@3.0.20 requires a nested 4.0.19.

No behavior impact (our render path is markdown→HTML and the affected handler is unchanged), but if you want to keep the bundle lean, bumping the two top-level pins to 9.0.5 and 4.0.19 would dedupe them back to one copy each.

…ITE-2481)

Bump two top-level pins to match the versions the newly-updated Adobe
packages require, so npm dedupes to a single copy each (rollup has no
external list, so mismatched siblings would bundle both):

- hast-util-to-html            9.0.0 -> 9.0.5  (req by @adobe/helix-markdown-support@7.1.23)
- @adobe/mdast-util-gridtables 4.0.5 -> 4.0.19 (req by @adobe/remark-gridtables@3.0.20)

Addresses PR review feedback. Build passes; test result unchanged from
baseline.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@melissag-ensemble melissag-ensemble left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Comment thread package.json Outdated
"hast-util-to-html": "9.0.5",
"hast-util-to-string": "3.0.0",
"hastscript": "9.0.0",
"mdast-util-to-hast": "13.1.0",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @adobe/* bumps pull mdast-util-to-hast@13.2.1 transitively while the root still pins 13.1.0 — three copies remain in the tree. Bumping the root pin to 13.2.1 would fully realize the dedup.

LGTM otherwise

Bump root pin mdast-util-to-hast 13.1.0 -> 13.2.1 to match the version
the updated @adobe/* packages pull transitively, collapsing three copies
in the tree to one.

Addresses PR review feedback. Build passes; test result unchanged from
baseline.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@louisachu
louisachu merged commit 0e97e9f into main Aug 27, 2026
1 check failed
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.

2 participants