Skip to content

js(deps): Pin rollup and flatted to fix CVE-2026-27606 and CVE-2026-33228#11

Merged
danielinniss merged 2 commits intomainfrom
fix/rollup-flatted-cves
Mar 25, 2026
Merged

js(deps): Pin rollup and flatted to fix CVE-2026-27606 and CVE-2026-33228#11
danielinniss merged 2 commits intomainfrom
fix/rollup-flatted-cves

Conversation

@danielinniss
Copy link
Copy Markdown

@danielinniss danielinniss commented Mar 25, 2026

Summary

Fixes CVE-2026-27606 (rollup path traversal) and CVE-2026-33228 (flatted prototype pollution) by pinning safe versions:

  • rollup: ≥4.59.0
  • flatted: ≥3.4.2

Also fixes ESM compatibility issue by scoping minimatch/debug/diff to mocha (preventing ESM-only package resolution that breaks CommonJS tooling).

These vulnerabilities were identified during the CKEditor v47 upgrade assessment (LOB-1938).

Test plan

  • Verify dependencies resolve correctly
  • Build completes successfully
  • Run test suite to ensure no regressions

Note

Medium Risk
Primarily dependency resolution changes, but upgrading rollup (and related tooling in yarn.lock) could affect build output or packaging behavior if the toolchain has subtle breaking changes.

Overview
Pins dependency resolutions to address security issues by forcing rollup (>=4.59.0) and flatted (>=3.4.2) to patched versions.

Adds additional resolutions overrides for Mocha transitive deps (debug, diff, minimatch) and refreshes yarn.lock to reflect the new pinned versions (including updated @babel/helpers and Rollup platform binaries).

Written by Cursor Bugbot for commit 5380e9c. This will update automatically on new commits. Configure here.

@danielinniss danielinniss requested a review from a team as a code owner March 25, 2026 11:43
Copy link
Copy Markdown
Collaborator

@tony tony left a comment

Choose a reason for hiding this comment

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

Image
ckeditor5-math on  ckeditor5-spring-2026 ❯ yarn ts:build; yarn build:dist
yarn run v1.22.22
$ tsc -p ./tsconfig.release.json
✨  Done in 0.87s.
yarn run v1.22.22
$ node ./scripts/build-dist.mjs
1/2: Generating NPM build...
2/2: Generating browser build...
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
✨  Done in 3.68s.
ckeditor5-math on  fix/rollup-flatted-cves ❯

@danielinniss danielinniss merged commit 0e2c75f into main Mar 25, 2026
2 checks passed
@danielinniss danielinniss deleted the fix/rollup-flatted-cves branch March 25, 2026 15:15
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.

2 participants