[Security] Bump rollup from 4.17.2 to 4.34.7
Bumps rollup from 4.17.2 to 4.34.7. This update includes a security fix.
Vulnerabilities fixed
DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS
Summary
We discovered a DOM Clobbering vulnerability in rollup when bundling scripts that use
import.meta.url
or with plugins that emit and reference asset files from code incjs
/umd
/iife
format. The DOM Clobbering gadget can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., animg
tag with an unsanitizedname
attribute) are present.It's worth noting that we’ve identifed similar issues in other popular bundlers like Webpack (CVE-2024-43788), which might serve as a good reference.
Details
Backgrounds
DOM Clobbering is a type of code-reuse attack where the attacker first embeds a piece of non-script, seemingly benign HTML markups in the webpage (e.g. through a post or comment) and leverages the gadgets (pieces of js code) living in the existing javascript code to transform it into executable code. More for information about DOM Clobbering, here are some references:
[1] https://scnps.co/papers/sp23_domclob.pdf [2] https://research.securitum.com/xss-in-amp4email-dom-clobbering/
Gadget found in
rollup
We have identified a DOM Clobbering vulnerability in
rollup
bundled scripts, particularly when the scripts usesimport.meta
and set output in format ofcjs
/umd
/iife
. In such cases,rollup
replaces meta property with the URL retrieved fromdocument.currentScript
.
... (truncated)
Patched versions: 2.79.2; 3.29.5; 4.22.4 Affected versions: = 4.0.0, < 4.22.4
Release notes
Sourced from rollup's releases.
v4.34.7
4.34.7
2025-02-14
Bug Fixes
- Ensure that calls to parameters are included correctly when using try-catch deoptimization (#5842)
Pull Requests
- #5840: fix(deps): lock file maintenance minor/patch updates (
@renovate
[bot])- #5842: Fix prop inclusion with try-catch-deoptimization (
@lukastaegert
)v4.34.6
4.34.6
2025-02-07
Bug Fixes
- Retain "void 0" in the output for smaller output and fewer surprises (#5838)
Pull Requests
- #5835: fix(deps): update swc monorepo (major) (
@renovate
[bot],@lukastaegert
)- #5838: replace undefined with void 0 for operator void (
@TrickyPi
)v4.34.5
4.34.5
2025-02-07
Bug Fixes
- Ensure namespace reexports always include all properties of all exports (#5837)
Pull Requests
- #5836: fix(deps): lock file maintenance minor/patch updates (
@renovate
[bot])- #5837: Include all paths of reexports if namespace is used (
@lukastaegert
)v4.34.4
4.34.4
2025-02-05
Bug Fixes
- Do not tree-shake properties if a rest element is used in destructuring (#5833)
... (truncated)
Changelog
Sourced from rollup's changelog.
4.34.7
2025-02-14
Bug Fixes
- Ensure that calls to parameters are included correctly when using try-catch deoptimization (#5842)
Pull Requests
- #5840: fix(deps): lock file maintenance minor/patch updates (
@renovate
[bot])- #5842: Fix prop inclusion with try-catch-deoptimization (
@lukastaegert
)4.34.6
2025-02-07
Bug Fixes
- Retain "void 0" in the output for smaller output and fewer surprises (#5838)
Pull Requests
- #5835: fix(deps): update swc monorepo (major) (
@renovate
[bot],@lukastaegert
)- #5838: replace undefined with void 0 for operator void (
@TrickyPi
)4.34.5
2025-02-07
Bug Fixes
- Ensure namespace reexports always include all properties of all exports (#5837)
Pull Requests
- #5836: fix(deps): lock file maintenance minor/patch updates (
@renovate
[bot])- #5837: Include all paths of reexports if namespace is used (
@lukastaegert
)4.34.4
2025-02-05
Bug Fixes
- Do not tree-shake properties if a rest element is used in destructuring (#5833)
Pull Requests
- #5833: include all properties if a rest element is destructed (
@TrickyPi
)
... (truncated)
Commits
-
f9c52f8
4.34.7 -
15a6f73
Fix prop inclusion with try-catch-deoptimization (#5842) -
a724b60
fix(deps): lock file maintenance minor/patch updates (#5840) -
4b87459
4.34.6 -
fe89821
replace undefined with void 0 for operator void (#5838) -
18cc314
fix(deps): update swc monorepo (major) (#5835) -
3426b02
4.34.5 -
f3aa1f0
Include all paths of reexports if namespace is used (#5837) -
9fc10c1
fix(deps): lock file maintenance minor/patch updates (#5836) -
19312a7
4.34.4 - Additional commits viewable in compare view