Skip to content

@rollup/plugin-terser depends on vulnerable versions of serialize-javascript #1969

Description

@Khoeckman

Rollup Plugin Name: @rollup/plugin-terser
Rollup Plugin Version: 0.4.4
Rollup Version: 4.59.0
Operating System (or Browser): Windows 11
Node Version: v24.12.0

# npm audit report

serialize-javascript  <=7.0.2
Severity: high
Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString() - https://github.com/advisories/GHSA-5c6j-r48x-rmvq 
fix available via `npm audit fix --force`
Will install @rollup/plugin-terser@0.1.0, which is a breaking change
node_modules/serialize-javascript
  @rollup/plugin-terser  >=0.2.0
  Depends on vulnerable versions of serialize-javascript
  node_modules/@rollup/plugin-terser

Additional Information

Happens when doing npm i on this repo:
https://github.com/Khoeckman/canvasparticles-js

Activity

  1. trimble commented on Mar 2, 2026

    @trimble

    See #1968

  2. raulrtello commented on Mar 4, 2026

    @raulrtello

    But this will be solved or we need to do a workaround?

  3. locked and limited conversation to collaborators on Mar 7, 2026
  4. converted this issue into a discussion #1979 on Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions