Skip to content

fix(deps): drop unused html-to-text (CVE-2026-40345) - #8

Merged
NewtTheWolf merged 1 commit into
mainfrom
fix/drop-unused-html-to-text
Aug 18, 2026
Merged

fix(deps): drop unused html-to-text (CVE-2026-40345)#8
NewtTheWolf merged 1 commit into
mainfrom
fix/drop-unused-html-to-text

Conversation

@NewtTheWolf

Copy link
Copy Markdown
Contributor

The v0.13.6 docker build failed the Trivy HIGH/CRITICAL gate, so the image was never pushed:

deepmerge-ts (package.json)  CVE-2026-40345  HIGH  fixed  7.1.6 -> 8.0.0
DeepmergeTS has stack exhaustion when merging recursive objects

deepmerge-ts comes in through html-to-text, which is declared in apps/api/package.json (plus its @types) but never imported anywhere in the treegit grep for html-to-text / htmlToText outside the lockfile matches only the two package.json lines.

html-to-text@10.0.0 is the latest published version and still pins deepmerge-ts: ^7.1.5, so there is nothing to upgrade to and a forced 8.0.0 override would cross a major on a transitive dep. Since nothing uses the package, removing it takes the whole subtree with it — deepmerge-ts and html-to-text are both gone from bun.lock.

Verified after removal: tsc --noEmit clean, bun test 458 pass / 0 fail.

Needed before the semver prerelease fix (#7) can reach production — v0.13.6 has a git tag and release notes but no image.

html-to-text and its @types were declared in apps/api but never imported
anywhere in the tree. The package pulls in deepmerge-ts ^7, and 7.1.6
carries CVE-2026-40345 (stack exhaustion on recursive merge, HIGH),
which fails the Trivy gate in the docker release workflow and blocked
the v0.13.6 image from being pushed.

html-to-text 10.0.0 is the latest release and still pins deepmerge-ts
^7.1.5, so there is no upstream version to upgrade to. Since nothing
uses the package, removing it drops the whole subtree — deepmerge-ts is
gone from the lockfile.
@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tabularium-docs Ready Ready Preview Aug 18, 2026 4:56pm
tabularium-website Ready Ready Preview Aug 18, 2026 4:56pm

Request Review

@NewtTheWolf
NewtTheWolf merged commit 2c6e1aa into main Aug 18, 2026
9 checks passed
@NewtTheWolf
NewtTheWolf deleted the fix/drop-unused-html-to-text branch August 18, 2026 17:00
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