Skip to content

fix(deps): drop the bundled fast-xml-parser copy from @remotion/lambda-client - #12943

Merged
samohovets merged 1 commit into
remotion-dev:mainfrom
gongfpp:fix/xml-builder-fast-xml-parser
Nov 4, 2026
Merged

samohovets merged 1 commit into
remotion-dev:mainfrom
gongfpp:fix/xml-builder-fast-xml-parser

Conversation

@gongfpp

@gongfpp gongfpp commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #12935.

What happens today

The root overrides block pins @aws-sdk/xml-builder to 3.972.5, which depends on [email protected]. @aws-sdk/core resolves @aws-sdk/xml-builder through that pin, and @remotion/lambda-client declares no runtime dependencies, so the parser is inlined into dist/cjs/index.js where npm audit and SCA tools cannot attribute it to this package. 5.3.6 sits 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 on fast-xml-parser at all, so raising the pin removes the copy rather than moving it to another affected version. @aws-sdk/core asks 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-parser off 4.4.1 for CVE-2026-25896, and 3.972.5 is the xml-builder release that carries 5.3.5+; 3.972.42 removes the dependency instead of raising it, so that path cannot regress.

Verification

bun install after the bump rewrites bun.lock and 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:

override dist/cjs/index.js maxEntitySize maxNestedTags bytes
3.972.5 baseline 3 0 2718852
3.972.42 after 0 0 2676659

maxEntitySize first appears in [email protected] and maxNestedTags in 5.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 fail
  • bun run formatting (oxfmt) — clean
  • bun run lint — 0 errors (2 pre-existing no-warning-comments warnings 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.4 is still the one remaining copy in the lockfile.

Environment: Windows 11 x64, Bun 1.4.3 (the version in packageManager), Node 22.22.2.

…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].
@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
bugs Ready Ready Preview Nov 4, 2026 10:34am UTC
remotion Ready Ready Preview Nov 4, 2026 10:34am UTC

Request Review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes

  • @aws-sdk/xml-builder override raised from 3.972.5 to 3.972.42 in the root package.json. Registry metadata confirms 3.972.42 drops the fast-xml-parser dependency entirely, and @aws-sdk/[email protected]'s ^3.972.4 range still accepts it, so no other resolution changes.
  • Regenerated bun.lock. The anynum, [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.0 requirement 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.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 | 𝕏

@samohovets

Copy link
Copy Markdown
Member

Thanks a lot for the fix and the thorough write-up! I double-checked that parseXML from 3.972.42 produces identical output to 3.972.5 on typical S3 responses, so this looks good to go.

@samohovets
samohovets merged commit e4c6179 into remotion-dev:main Nov 4, 2026
19 checks passed

This branch was successfully deployed

2 active deployments
Preview – remotion — 5875632c Deployed Nov 4, 2026 by vercel[bot]
Preview – bugs — 5875632c Deployed Nov 4, 2026 by vercel[bot]
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.

@remotion/lambda-client bundles fast-xml-parser 5.3.6 because of the root @aws-sdk/xml-builder override

2 participants