UID2-6676: upgrade serialize-javascript to fix GHSA-5c6j-r48x-rmvq RCE#998
Merged
cYKatherine merged 1 commit intomainfrom Mar 2, 2026
Merged
UID2-6676: upgrade serialize-javascript to fix GHSA-5c6j-r48x-rmvq RCE#998cYKatherine merged 1 commit intomainfrom
cYKatherine merged 1 commit intomainfrom
Conversation
Adds serialize-javascript override to pin to patched version: - overrides/serialize-javascript: (new) ^7.0.3 GHSA-5c6j-r48x-rmvq: Critical RCE via unsanitized RegExp.flags and Date.prototype.toISOString() in serialized output, affects serialize-javascript <= 7.0.2. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sophia-chen-ttd
approved these changes
Mar 2, 2026
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.
Summary
Fixes GHSA-5c6j-r48x-rmvq — a critical Remote Code Execution (RCE) vulnerability in the `serialize-javascript` npm package.
Severity: Critical (CWE-94: Code Injection)
Root cause: `RegExp.flags` and `Date.prototype.toISOString()` are interpolated into serialized output without sanitization. A crafted `RegExp` or `Date` object can break out of generated string literals, leading to arbitrary code execution when the output is deserialized.
Affected versions: `serialize-javascript <= 7.0.2` — Fixed in 7.0.3
Changes:
Resolved in lockfile: `serialize-javascript@7.0.3`
Part of UID2-6676. Also affects: uid2-self-serve-portal, uid2-web-integrations.
Test plan
🤖 Generated with Claude Code