Repository navigation
fix(deps): drop the bundled fast-xml-parser copy from @remotion/lambda-client - #12943
Merged
samohovets merged 1 commit intoNov 4, 2026
Merged
Conversation
…a-client The root override pinned @aws-sdk/xml-builder to 3.972.5, which depends on fast-xml-parser 5.3.6. @remotion/lambda-client declares no dependencies, so that copy is inlined into dist/cjs/index.js where dependency audits cannot see it, and 5.3.6 is affected by CVE-2026-33036, CVE-2026-33349, CVE-2026-41650 and CVE-2026-27942. 3.972.42, the latest release in the same line, no longer depends on fast-xml-parser at all, so raising the pin removes the copy instead of bumping it. @aws-sdk/core asks for ^3.972.4, so the override stays inside the range it already resolved to. Measured on the same tree, rebuilt after reinstalling: 3.972.5 dist/cjs/index.js maxEntitySize=3 maxNestedTags=0 2718852 bytes 3.972.42 dist/cjs/index.js maxEntitySize=0 maxNestedTags=0 2676659 bytes Also gone from bun.lock after the change: [email protected], [email protected] and [email protected].
Contributor
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
@aws-sdk/xml-builderoverride raised from3.972.5to3.972.42in the rootpackage.json. Registry metadata confirms3.972.42drops thefast-xml-parserdependency entirely, and@aws-sdk/[email protected]'s^3.972.4range still accepts it, so no other resolution changes.- Regenerated
bun.lock. Theanynum,[email protected], and nested[email protected]entries are gone; a nested@smithy/[email protected]is added for the new xml-builder, as its^4.19.0requirement expects.
I independently confirmed bun install --frozen-lockfile succeeds on the PR head, @remotion/lambda-client's bun run make rebuilds cleanly, the resulting dist/cjs/index.js is 2,676,659 bytes with no maxEntitySize, maxNestedTags, or fast-xml-parser markers, and bun test src passes 60/60. The remaining [email protected] under @google-cloud/storage is the separate #12897 path and is correctly left untouched.
deepseek-v4.1-flash-1017 | 𝕏
Member
|
Thanks a lot for the fix and the thorough write-up! I double-checked that |
This branch was successfully deployed
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.

Closes #12935.
What happens today
The root
overridesblock pins@aws-sdk/xml-builderto3.972.5, which depends on[email protected].@aws-sdk/coreresolves@aws-sdk/xml-builderthrough that pin, and@remotion/lambda-clientdeclares no runtime dependencies, so the parser is inlined intodist/cjs/index.jswherenpm auditand SCA tools cannot attribute it to this package.5.3.6sits inside the affected ranges of CVE-2026-33036, CVE-2026-33349, CVE-2026-41650 and CVE-2026-27942.Change
@aws-sdk/[email protected]— the latest release of the same line — no longer depends onfast-xml-parserat all, so raising the pin removes the copy rather than moving it to another affected version.@aws-sdk/coreasks for^3.972.4, so the override stays inside the range it already resolved to and no other dependency resolution changes.The override itself is kept. #10790 added it to move
fast-xml-parseroff4.4.1for CVE-2026-25896, and3.972.5is the xml-builder release that carries5.3.5+;3.972.42removes the dependency instead of raising it, so that path cannot regress.Verification
bun installafter the bump rewritesbun.lockand drops[email protected],[email protected]and[email protected]from the dependency graph;[email protected]no longer appears anywhere in the lockfile.Rebuilt the package on both sides of the change, same tree, reinstalling in between:
dist/cjs/index.jsmaxEntitySizemaxNestedTags3.972.53.972.42maxEntitySizefirst appears in[email protected]andmaxNestedTagsin5.3.8, so the baseline counts match the report; after the change no parser code is bundled and the bundle shrinks by 42 KB.Build:
bun x turbo run make --filter='@remotion/lambda-client'— 7 tasks, all successful.In
packages/lambda-client:bun test src— 60 pass, 0 failbun run formatting(oxfmt) — cleanbun run lint— 0 errors (2 pre-existingno-warning-commentswarnings on unrelated lines)Scope
This covers the Lambda client path only. The audit-visible
@remotion/cloudrun→@google-cloud/storage→[email protected]path from #12897 is untouched;4.5.4is still the one remaining copy in the lockfile.Environment: Windows 11 x64, Bun 1.4.3 (the version in
packageManager), Node 22.22.2.