fix(deps): drop unused html-to-text (CVE-2026-40345) - #8
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The v0.13.6 docker build failed the Trivy HIGH/CRITICAL gate, so the image was never pushed:
deepmerge-tscomes in throughhtml-to-text, which is declared inapps/api/package.json(plus its@types) but never imported anywhere in the tree —git grepforhtml-to-text/htmlToTextoutside the lockfile matches only the two package.json lines.html-to-text@10.0.0is the latest published version and still pinsdeepmerge-ts: ^7.1.5, so there is nothing to upgrade to and a forced8.0.0override would cross a major on a transitive dep. Since nothing uses the package, removing it takes the whole subtree with it —deepmerge-tsandhtml-to-textare both gone frombun.lock.Verified after removal:
tsc --noEmitclean,bun test458 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.