Skip to content

fix(terser): update serialize-javascript to ^7.0.5#1991

Open
williamquintas wants to merge 1 commit intorollup:masterfrom
williamquintas:fix/serialize-javascript-vulnerability
Open

fix(terser): update serialize-javascript to ^7.0.5#1991
williamquintas wants to merge 1 commit intorollup:masterfrom
williamquintas:fix/serialize-javascript-vulnerability

Conversation

@williamquintas
Copy link
Copy Markdown

@williamquintas williamquintas commented Mar 31, 2026

Rollup Plugin Name: terser

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no (dependency update only)

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

Description

This PR updates serialize-javascript dependency from ^7.0.3 to ^7.0.5 to fix two security vulnerabilities:

  1. GHSA-5c6j-r48x-rmvq (High severity): Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString()

    • Patched in: 7.0.3
  2. GHSA-qj8w-gfj5-8c6v (Moderate severity): Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects

    • Patched in: 7.0.5

Impact on Downstream Libraries

This vulnerability affects multiple downstream libraries in the dependency chain:

serialize-javascript (vulnerable)
    ↓
@rollup/plugin-terser (uses serialize-javascript)
    ↓
workbox-build (uses @rollup/plugin-terser)
    ↓
vite-plugin-pwa (uses workbox-build)

Reference: GoogleChrome/workbox#3470

Updates serialize-javascript dependency to fix security vulnerabilities:
- GHSA-5c6j-r48x-rmvq (RCE via RegExp.flags and Date.prototype.toISOString())
- GHSA-qj8w-gfj5-8c6v (CPU Exhaustion DoS)
@williamquintas williamquintas requested a review from tada5hi as a code owner March 31, 2026 01:47
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.

fix(terser): update serialize-javascript to ^7.0.5 to fix security vulnerabilities

1 participant